Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Send a clearer error message if response is truncated before a chunk
If a chunked response is truncated exactly before sending a new chunk (that is, before the first byte of the chunk size), urllib3 throws `InvalidChunkLength(got length b'\\n', 0 bytes read)`. This is confusing as no chunk length was sent (a valid chunk length line would also be \r\n-terminated and we didn't see those either). If the chunk length is the empty string, send a different error message.
- Loading branch information
Showing
2 changed files
with
27 additions
and
2 deletions.
There are no files selected for viewing
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