Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Proxy-Authorization header on proxy object, not on request object for CONNECT method (https://...) #1194

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fabienvauchelles
Copy link

Hello,

Splash does not correctly handle proxy authentication as specified in RFC2817.

When using the CONNECT method with a proxy, the Proxy-Authorization header is not accessible from the request because it is TLS encrypted. Adding this header to the request object doesn't work (see network_manager.py, line 291).

For the CONNECT method, the Proxy-Authorization header should be set on the proxy object.

This PR resolves the issue.

Thanks.

Fabien.

@fabienvauchelles fabienvauchelles changed the title fix(proxy): use proxy-auth header on proxy, not on request for connect Use Proxy-Authorization header on proxy object, not on request object for CONNECT method (https://...) Aug 2, 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.

1 participant