mirror of https://github.com/goproxyio/goproxy
parent
b259869435
commit
fac88abd58
|
@ -184,7 +184,7 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||||
}
|
}
|
||||||
if openErr != nil {
|
if openErr != nil {
|
||||||
code := http.StatusNotFound
|
code := http.StatusNotFound
|
||||||
http.Error(w, "not found", code)
|
http.Error(w, openErr.Error(), code)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
defer f.Close()
|
defer f.Close()
|
||||||
|
|
Loading…
Reference in New Issue