A change in requests 2.8.0 forced the HTTPResponse used for recorded
responses to be parsed as streamed data instead of an ordinary read.
This breaks betamax when used with that version of requests.
This fix removes the chunked header from the recorded response (if it
exists) to prevent requests from loading the response data as chunked
stream data.
This might have some implications for use cases that rely on the
chunked header to be set.
A change in requests 2.8.0 forced the
HTTPResponse
used for recorded responses to be parsed as streamed data instead of an ordinary read. This breaks betamax when used with that version of requests.This fix removes the
chunked
header from the recorded response (if it exists) to prevent requests from loading the response data as chunked stream data.This might have some implications for use cases that rely on the
chunked
header to be set.