]> khamidou — GitHub mirrors - vcrpy.git/commit
Fix Requests so it can gunzip the request body
authorKevin McCarthy <me@kevinmccarthy.org>
Sun, 10 Nov 2013 03:33:33 +0000 (17:33 -1000)
committerKevin McCarthy <me@kevinmccarthy.org>
Sun, 10 Nov 2013 03:51:29 +0000 (17:51 -1000)
commitb0a13ba690d043ec297dd194c7cd5310386a86d0
treefdc80e7f7d40f1cdf97777f9ba10601758df9bc6
parentd33b19b5bbf2f400b0273ddae98ef27fac34f5c8
Fix Requests so it can gunzip the request body

I wasn't emulating the stateful file-object in my response stub,
so urllib3 wasn't decompressing gzipped bodies properly.  This
should fix that problem.

Thanks @bryanhelmig for the motivation to dig into this.
tests/assertions.py
tests/integration/test_requests.py
vcr/stubs/__init__.py