fix(gateway): serve the index with serveFile
Steven Allen committed
Sep 26, 2019 at 12:25 UTC
62451039ecca70a5d6d836e822200adbf2d0dda7
1 file changed
+1
-1
core/corehttp/gateway_handler.go
+1
-1
@@ -289,7 +289,7 @@ func (i *gatewayHandler) getOrHeadHandler(w http.ResponseWriter, r *http.Request
289
}
290
291
// write to request
292
- http.ServeContent(w, r, "index.html", modtime, f)
292
+ i.serveFile(w, r, "index.html", modtime, f)
293
return
294
case resolver.ErrNoLink:
295
// no index.html; noop