all repos — flounder @ d4db5e2d3c517b27f59adb16486a0043b1f96f85

A small site builder for the Gemini protocol

Add 404 error on nonexistent folder
alex wennerberg alex@alexwennerberg.com
Sat, 09 Jan 2021 22:48:35 -0800
commit

d4db5e2d3c517b27f59adb16486a0043b1f96f85

parent

a378f18ded7aa8cdf4819d53e4d66b5e67d681fa

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M http.gohttp.go

@@ -579,7 +579,7 @@ }

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)