summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortjpcc <tjp@ctrl-c.club>2023-01-28 15:30:09 -0700
committertjpcc <tjp@ctrl-c.club>2023-01-28 15:30:09 -0700
commit23fd67c25a646b8207b770ce288700358d02ed91 (patch)
treeeeb36339b5657b7ddedd5a456897a39665e23bb4
parent84d8e515befa833cc965ab7dfd8e9cf5aa02eddc (diff)
permanently redirect from /dir to /dir/ on gemini. fixes #15
-rw-r--r--contrib/fs/gemini.go2
1 files changed, 1 insertions, 1 deletions
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