Skip to content

Fix TestNoProxyHeaders and TestNoProxyHeadersHttps tests#215

Closed
erikdubbelboer wants to merge 1 commit intoelazarl:masterfrom
erikdubbelboer:close
Closed

Fix TestNoProxyHeaders and TestNoProxyHeadersHttps tests#215
erikdubbelboer wants to merge 1 commit intoelazarl:masterfrom
erikdubbelboer:close

Conversation

@erikdubbelboer
Copy link
Copy Markdown

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 #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.

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 elazarl#92
@erikdubbelboer
Copy link
Copy Markdown
Author

@elazarl no?

@erikdubbelboer
Copy link
Copy Markdown
Author

Tests are still failing...

@ErikPelli
Copy link
Copy Markdown
Collaborator

Tests are not failing anymore, closing this PR

@ErikPelli ErikPelli closed this Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TestNoProxyHeaders and TestNoProxyHeadersHttps tests failing

2 participants