diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/fileserver/main.go | 2 |
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 |