httmock icon indicating copy to clipboard operation
httmock copied to clipboard

Incompatible with origin Response.raw.read

Open triostones opened this issue 8 years ago • 0 comments

Hi!

I find that the raw.read would raise TypeError when I call raw.read(decode_content=True) in my project. Here is the error message:

TypeError: read() got an unexpected keyword argument 'decode_content'

The reason is that StringIO.read is deferent from HTTPResponse.read and there is no compatiblity in current code.

triostones avatar May 23 '16 10:05 triostones