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

Redirects fails proxy authentification #2177

Open
vvmikheev opened this issue Mar 14, 2024 · 0 comments
Open

Redirects fails proxy authentification #2177

vvmikheev opened this issue Mar 14, 2024 · 0 comments

Comments

@vvmikheev
Copy link

vvmikheev commented Mar 14, 2024

request to http://google.com via Proxy fails with 407 Proxy Authentication Required after redirect to http://www.google.com.
I can not provide a proxy to build a MRE. But here are some logs.

[2024-03-14T09:20:06Z DEBUG reqwest::connect] starting new connection: http://google.com/
[2024-03-14T09:20:06Z DEBUG reqwest::connect] proxy(mysuperproxy) intercepts 'http://google.com/'
[2024-03-14T09:20:06Z DEBUG reqwest::async_impl::client] redirecting 'http://google.com/' to 'http://www.google.com/'
[2024-03-14T09:20:06Z DEBUG reqwest::connect] starting new connection: http://www.google.com/
[2024-03-14T09:20:06Z DEBUG reqwest::connect] proxy(mysuperproxy) intercepts 'http://www.google.com/'
Status code: 407 Proxy Authentication Required

As far as I understand PendingRequest seems to lose Proxy-Authorization header during redirect.

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

No branches or pull requests

1 participant