flounder

A simple gemini site builder
Log | Files | Refs | README | LICENSE

commit d4db5e2d3c517b27f59adb16486a0043b1f96f85
parent a378f18ded7aa8cdf4819d53e4d66b5e67d681fa
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Sat,  9 Jan 2021 22:48:35 -0800

Add 404 error on nonexistent folder

Diffstat:
Mhttp.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/http.go b/http.go @@ -579,7 +579,7 @@ func userFile(w http.ResponseWriter, r *http.Request) { var geminiContent string _, err = os.Stat(path.Join(fullPath, "index.gmi")) - if p == "/" || isDir { + if isDir { if os.IsNotExist(err) { if p == "/gemlog" { geminiContent = generateGemfeedPage(userName)