ignore go get error

pull/2/head
kun 2018-09-03 16:24:22 +08:00
parent 4a2c1bd262
commit 0e413b5096
1 changed files with 3 additions and 5 deletions

View File

@ -60,11 +60,9 @@ func mainHandler(inner http.Handler) http.Handler {
ReturnServerError(w, err) ReturnServerError(w, err)
return return
} }
err = goGet(path, version, suffix, w, r) // ignore the error, incorrect tag may be given
if err != nil { // forward to inner.ServeHTTP
ReturnServerError(w, err) goGet(path, version, suffix, w, r)
return
}
} }
if strings.HasSuffix(r.URL.Path, "/@v/list") { if strings.HasSuffix(r.URL.Path, "/@v/list") {
w.WriteHeader(200) w.WriteHeader(200)