From 43afb92ba59d414959638163ce9d3b26a4c57cde Mon Sep 17 00:00:00 2001 From: WeebDataHoarder <57538841+WeebDataHoarder@users.noreply.github.com> Date: Sat, 19 Feb 2022 04:05:49 +0100 Subject: [PATCH] serve README.md on / --- server.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server.go b/server.go index 5460ef924..d4dac2c5a 100644 --- a/server.go +++ b/server.go @@ -385,6 +385,9 @@ func main() { } else { filePath := path.Join(*servePath, strings.TrimLeft(request.URL.Path, "/")) + if request.URL.Path == "/" { + filePath = path.Join(*servePath, "README.md") + } stat, err := os.Stat(filePath) if err != nil {