Skip to content

Appropriately handle urllib3's InvalidHeader exception#5914

Merged
sigmavirus24 merged 1 commit intopsf:mainfrom
nateprewitt:invalid_header
Aug 27, 2021
Merged

Appropriately handle urllib3's InvalidHeader exception#5914
sigmavirus24 merged 1 commit intopsf:mainfrom
nateprewitt:invalid_header

Conversation

@nateprewitt
Copy link
Copy Markdown
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.

2 participants