From 615af0abb34d9c905ed3abad8711bdb79ae22a1d Mon Sep 17 00:00:00 2001 From: Finn Date: Mon, 8 Apr 2024 13:21:52 -0700 Subject: [PATCH] restore index.html check for root --- serve.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/serve.go b/serve.go index 8fbd8d8..3d2b380 100644 --- a/serve.go +++ b/serve.go @@ -43,6 +43,9 @@ type handler struct { func (h handler) ServeHTTP(w http.ResponseWriter, r *http.Request) { domain := r.Host path := r.URL.Path + if path == "" || path == "/" { + path = "index.html" + } object, stat, err := h.get(r.Context(), domain, path) if err != nil {