From 775c0c1040e6a6622fec39d49b354bfa194a6998 Mon Sep 17 00:00:00 2001 From: tjpcc Date: Sat, 30 Sep 2023 20:08:33 -0600 Subject: file serving refactor * do away with fs.FS usage in gemini, like the previous refactor in gopher * remove spartan code in contrib * standardize fsroot/urlroot string arguments to file serving handlers --- examples/gopher_fileserver/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/gopher_fileserver') diff --git a/examples/gopher_fileserver/main.go b/examples/gopher_fileserver/main.go index 057aa21..1cb7495 100644 --- a/examples/gopher_fileserver/main.go +++ b/examples/gopher_fileserver/main.go @@ -13,10 +13,10 @@ import ( func main() { handler := sr.FallthroughHandler( - fs.GopherDirectoryDefault(".", nil), - fs.GopherDirectoryListing(".", nil), + fs.GopherDirectoryDefault(".", "", nil), + fs.GopherDirectoryListing(".", "", nil), cgi.GopherCGIDirectory("/cgi-bin", "./cgi-bin", nil), - fs.GopherFileHandler(".", nil), + fs.GopherFileHandler(".", "", nil), ) _, infoLog, _, errLog := logging.DefaultLoggers() -- cgit v1.2.3