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

Avoid override of headers by urllib3 when unset #1502

Merged
merged 3 commits into from
May 19, 2023

Conversation

abdelq
Copy link
Contributor

@abdelq abdelq commented May 7, 2023

I attempted to unset User-Agent when using httpie and couldn't understand what was going wrong as -v was showing no User-Agent until I looked at the packets and noticed that urllib3 overwrote it.

Until something like psf/requests#5693 makes it in requests, this deals with the aforementioned issue.

edit: seems like tests are failing because of the unrelated DEFAULT_CIPHERS issue from newer urllib3 versions...

@jkbrzt jkbrzt merged commit cbe53ed into httpie:master May 19, 2023
jkbrzt added a commit that referenced this pull request May 19, 2023
@jkbrzt
Copy link
Member

jkbrzt commented May 19, 2023

Very nice! Thanks, @abdelq

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.

2 participants