Skip to content

Commit

Permalink
barnacs#63 fixed
Browse files Browse the repository at this point in the history
the bug mentioned in barnacs#63 fixed
  • Loading branch information
Web-Distortion authored Sep 9, 2020
1 parent aaa4345 commit 76cbab3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ func (p *Proxy) handle(w http.ResponseWriter, r *http.Request) error {
return fmt.Errorf("error forwarding request: %s", err)
}
defer resp.Body.Close()
body, err := ioutil.ReadAll(resp.Body)
source_type := http.DetectContentType(body)
rw := newResponseWriter(w)
rr := newResponseReader(resp)
err = p.proxyResponse(rw, rr, r.Header)
Expand Down

0 comments on commit 76cbab3

Please sign in to comment.