goproxy icon indicating copy to clipboard operation
goproxy copied to clipboard

Fix TestNoProxyHeaders and TestNoProxyHeadersHttps tests

Open erikdubbelboer opened this issue 7 years ago • 2 comments

When the original request has a Connection: close header Go sets r.Close to true. When this is true Go adds the Connection: close header to the outgoing request even if the header was removed.

Fixes https://github.com/elazarl/goproxy/issues/92

This does mean that there is currently no way to make goproxy set a Connection: close header for its outgoing requests. I guess this could be made an option in ProxyCtx so you can change it in a request handler.

erikdubbelboer avatar Apr 08 '17 14:04 erikdubbelboer

@elazarl no?

erikdubbelboer avatar Apr 27 '17 15:04 erikdubbelboer

Tests are still failing...

erikdubbelboer avatar May 27 '17 02:05 erikdubbelboer