restore index.html check for root
All checks were successful
/ build-container (push) Successful in 50s

This commit is contained in:
Finn 2024-04-08 13:21:52 -07:00
parent 7212e51d1b
commit 615af0abb3

View file

@ -43,6 +43,9 @@ type handler struct {
func (h handler) ServeHTTP(w http.ResponseWriter, r *http.Request) { func (h handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
domain := r.Host domain := r.Host
path := r.URL.Path path := r.URL.Path
if path == "" || path == "/" {
path = "index.html"
}
object, stat, err := h.get(r.Context(), domain, path) object, stat, err := h.get(r.Context(), domain, path)
if err != nil { if err != nil {