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)
|
||||
return
|
||||
}
|
||||
defer func() { _ = f.Close() }()
|
||||
idx, err := ioutil.ReadAll(f)
|
||||
if err != nil {
|
||||
w.WriteHeader(http.StatusInternalServerError)
|
||||
|
|
Loading…
Reference in New Issue