use enforce_content_length in Requests #3563
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Lukasa, here's a bit of a hiccup I'd appreciate some input on. Currently all data reads in Requests end up using
Currently, regardless of whether or not the content is streamed, we end up initially running it through the
We could parse the exception string for 'IncompleteRead', but that seems clunky to me. We could also add a conditional inside to raise