mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
Fix for #303
This commit is contained in:
+3
-2
@@ -441,7 +441,7 @@ class Request(object):
|
||||
headers=self.headers,
|
||||
redirect=False,
|
||||
assert_same_host=False,
|
||||
preload_content=prefetch,
|
||||
preload_content=False,
|
||||
decode_content=False,
|
||||
retries=self.config.get('max_retries', 0),
|
||||
timeout=self.timeout,
|
||||
@@ -470,7 +470,8 @@ class Request(object):
|
||||
|
||||
# If prefetch is True, mark content as consumed.
|
||||
if prefetch:
|
||||
self.response._content_consumed = True
|
||||
# Save the response.
|
||||
self.response.content
|
||||
|
||||
return self.sent
|
||||
|
||||
|
||||
Reference in New Issue
Block a user