restore index.html check for root
All checks were successful
/ build-container (push) Successful in 50s
All checks were successful
/ build-container (push) Successful in 50s
This commit is contained in:
parent
7212e51d1b
commit
615af0abb3
1 changed files with 3 additions and 0 deletions
3
serve.go
3
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 {
|
||||
|
|
Loading…
Reference in a new issue