aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYotam Nachum <me@yotam.net>2019-11-23 22:18:28 +0200
committerYotam Nachum <me@yotam.net>2019-11-23 22:18:28 +0200
commitfbba58af84adf02c09a8f4f00a5573f41ca58fc3 (patch)
treea0f60fd4a833a8de96bce463298443ba29f96ecd
parentAdd a README to explain how to use the server (diff)
downloadshavit-fbba58af84adf02c09a8f4f00a5573f41ca58fc3.tar.gz
shavit-fbba58af84adf02c09a8f4f00a5573f41ca58fc3.zip
Switch to correct gemini file extension
-rw-r--r--handler.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/handler.go b/handler.go
index 9f258ec..75a8d2b 100644
--- a/handler.go
+++ b/handler.go
@@ -53,7 +53,7 @@ func (h Handler) getFilePath(rawURL string) (string, error) {
return itemPath, nil
}
- indexPath := filepath.Join(itemPath, "index.gemi")
+ indexPath := filepath.Join(itemPath, "index.gmi")
if h.isFile(indexPath) {
return indexPath, nil
}