diff options
author | tjpcc <tjp@ctrl-c.club> | 2023-01-28 15:30:09 -0700 |
---|---|---|
committer | tjpcc <tjp@ctrl-c.club> | 2023-01-28 15:30:09 -0700 |
commit | 23fd67c25a646b8207b770ce288700358d02ed91 (patch) | |
tree | eeb36339b5657b7ddedd5a456897a39665e23bb4 /contrib | |
parent | 84d8e515befa833cc965ab7dfd8e9cf5aa02eddc (diff) |
permanently redirect from /dir to /dir/ on gemini. fixes #15
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/fs/gemini.go | 2 |
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 |