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

Appropriately handle urllib3's InvalidHeader exception #5914

Merged
merged 1 commit into from Aug 27, 2021

Conversation

nateprewitt
Copy link
Member

#4306 raised an issue in our initial integration with urllib3's InvalidHeader implementation. We've been leaking an unwrapped exception in some occasions through our HTTPAdapter. This patch should consolidate to the single Requests exception in all cases.

This may technically be considered breaking as we're changing the exception type, but Requests InvalidHeader was already raised through this API in the common case, so I would consider this as more of a bug.

@sigmavirus24 sigmavirus24 merged commit 1096835 into psf:main Aug 27, 2021
@nateprewitt nateprewitt deleted the invalid_header branch August 27, 2021 01:12
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants