mirror of
https://github.com/prometheus/prometheus.git
synced 2025-02-21 03:16:00 -08:00
Signed-off-by: Pablo Caderno <kaderno@gmail.com>
This commit is contained in:
parent
5a4c3734b1
commit
b878527151
|
@ -397,6 +397,7 @@ func New(logger log.Logger, o *Options) *Handler {
|
||||||
fmt.Fprintf(w, "Error opening React index.html: %v", err)
|
fmt.Fprintf(w, "Error opening React index.html: %v", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
defer func() { _ = f.Close() }()
|
||||||
idx, err := ioutil.ReadAll(f)
|
idx, err := ioutil.ReadAll(f)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
w.WriteHeader(http.StatusInternalServerError)
|
w.WriteHeader(http.StatusInternalServerError)
|
||||||
|
|
Loading…
Reference in a new issue