always provide file serve

pull/57/head
kun 2019-01-30 15:30:03 +08:00
parent cc1208f526
commit c8a38458f3
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ func NewProxy(cache string) http.Handler {
log.Printf("goproxy: %s request %s\n", r.RemoteAddr, r.URL.Path)
info, err := parseModInfoFromUrl(r.URL.Path)
if err != nil {
ReturnBadRequest(w, err)
innerHandle.ServeHTTP(w, r)
return
}
switch suf := info.suf; suf {