From 23fd67c25a646b8207b770ce288700358d02ed91 Mon Sep 17 00:00:00 2001 From: tjpcc Date: Sat, 28 Jan 2023 15:30:09 -0700 Subject: permanently redirect from /dir to /dir/ on gemini. fixes #15 --- contrib/fs/gemini.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib/fs/gemini.go') diff --git a/contrib/fs/gemini.go b/contrib/fs/gemini.go index b41cb75..4193493 100644 --- a/contrib/fs/gemini.go +++ b/contrib/fs/gemini.go @@ -123,7 +123,7 @@ func handleDirGemini(request *gus.Request, fileSystem fs.FS) (string, fs.ReadDir _ = dir.Close() url := *request.URL url.Path += "/" - return "", nil, gemini.Redirect(url.String()) + return "", nil, gemini.PermanentRedirect(url.String()) } return path, dir, nil -- cgit v1.2.3