build fixes for previous
This commit is contained in:
parent
40769020db
commit
74bccdbd84
@ -112,7 +112,7 @@ func (this *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
w.Header().Set(`Access-Control-Allow-Origin`, `*`)
|
||||
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))
|
||||
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user