bug fix
alex wennerberg alex@alexwennerberg.com
Sat, 21 Nov 2020 14:04:54 -0800
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
gemini.go
→
gemini.go
@@ -43,7 +43,7 @@ userName := filepath.Clean(strings.Split(r.URL.Host, ".")[0]) // clean probably unnecessary
fileName := filepath.Clean(r.URL.Path) if fileName == "/" { fileName = "index.gmi" - } else if strings.HasPrefix(fileName, ".hidden") { + } else if strings.HasPrefix(fileName, "/.hidden") { w.WriteStatus(gmi.StatusNotFound) return }