-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tell urllib3 to ignore content length mismatch
In urllib3 v2 they default enforce_content_length to true. This fails now when you mock a request that doesn't have any data that can be partially read. Fixes: #228
- Loading branch information
1 parent
fc19034
commit 455f7d9
Showing
3 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
releasenotes/notes/urllib3-2-content-length-mismatch-d98e782a25c41266.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
fixes: | ||
- | | ||
Fix incompatibility with urllib3 >2.0.0. In 2.0.0 they default to enforcing | ||
content length checking on returned bodies in responses from the previous | ||
default of false. However the flag is still available so for compatibility | ||
we can just default the other way. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters