mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
Read content in Session.send instead of Adapter.send.
This commit is contained in:
@@ -385,9 +385,4 @@ class HTTPAdapter(BaseAdapter):
|
||||
else:
|
||||
raise
|
||||
|
||||
r = self.build_response(request, resp)
|
||||
|
||||
if not stream:
|
||||
r.content
|
||||
|
||||
return r
|
||||
return self.build_response(request, resp)
|
||||
|
||||
@@ -592,6 +592,9 @@ class Session(SessionRedirectMixin):
|
||||
r = history.pop()
|
||||
r.history = history
|
||||
|
||||
if not stream:
|
||||
r.content
|
||||
|
||||
return r
|
||||
|
||||
def get_adapter(self, url):
|
||||
|
||||
Reference in New Issue
Block a user