build fixes for previous

This commit is contained in:
mappu 2017-10-08 16:43:13 +13:00
parent 40769020db
commit 74bccdbd84

View File

@ -112,7 +112,7 @@ func (this *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
w.Header().Set(`Access-Control-Allow-Origin`, `*`) w.Header().Set(`Access-Control-Allow-Origin`, `*`)
w.WriteHeader(200) w.WriteHeader(200)
} else if r.Method == "GET" && static, err := Asset(r.URL.Path[1:]); err == nil { } else if static, err := Asset(r.URL.Path[1:]); err == nil && r.Method == "GET" {
http.ServeContent(w, r, r.URL.Path[1:], this.startTime, bytes.NewReader(static)) http.ServeContent(w, r, r.URL.Path[1:], this.startTime, bytes.NewReader(static))
} else { } else {