mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-19 23:11:25 +02:00
improved HTTP performance, especially when match_domains are used; api json string fix
This commit is contained in:
@@ -404,7 +404,7 @@ func (p *ReverseProxy) serveHTTP(rw http.ResponseWriter, req *http.Request) {
|
||||
|
||||
rw.WriteHeader(res.StatusCode)
|
||||
|
||||
err = U.Copy2(req.Context(), rw, res.Body)
|
||||
_, err = io.Copy(rw, res.Body)
|
||||
if err != nil {
|
||||
if !errors.Is(err, context.Canceled) {
|
||||
p.errorHandler(rw, req, err, true)
|
||||
|
||||
Reference in New Issue
Block a user