kennethreitz/requests — Issue #303: prefetch=True and RuntimeError: The content for this response was already consumed
Author: fsfeel
Created: 2011-12-10 14:10:20+00:00
State: open

Hello!

requests 0.8.3 (was installed with pip), python 2.7.1

>>> import requests
>>> r = requests.get("http://www.httpbin.org/headers", prefetch=True)
>>> print r.content
Traceback (most recent call last):
File "", line 1, in
File "/home/hurr/venvs/durr/local/lib/python2.7/site-packages/requests/models.py", line 584, in content
'The content for this response was already consumed')
RuntimeError: The content for this response was already consumed