summaryrefslogtreecommitdiff
path: root/examples/fileserver
diff options
context:
space:
mode:
authortjpcc <tjp@ctrl-c.club>2023-01-11 10:36:56 -0700
committertjpcc <tjp@ctrl-c.club>2023-01-11 10:36:56 -0700
commite183f9cd23380a81071c32f64c91e60f46a7d8cb (patch)
treed78b0a4936dee3e3201d97668bfb5de4492b3593 /examples/fileserver
parent197d8e4cb0170356dd20755efcf1d336c4c38583 (diff)
lots more documentation comments
Diffstat (limited to 'examples/fileserver')
-rw-r--r--examples/fileserver/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/fileserver/main.go b/examples/fileserver/main.go
index d7f628b..b38ae76 100644
--- a/examples/fileserver/main.go
+++ b/examples/fileserver/main.go
@@ -23,7 +23,7 @@ func main() {
// build the request handler
fileSystem := os.DirFS(".")
// Fallthrough tries each handler in succession until it gets something other than "51 Not Found"
- handler := gemini.Fallthrough(
+ handler := gemini.FallthroughHandler(
// first see if they're fetching a directory and we have <dir>/index.gmi
fs.DirectoryDefault(fileSystem, "index.gmi"),
// next (still if they requested a directory) build a directory listing response