Skip to content
Myr

Read content in Session.send instead of Adapter.send.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by schlamar · committed by schlamar · parent c2a1f28 · Browse files · 2 files+4 added−6 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+4 added−6 removed

  • other:+4 added−6 removed

2 files+4 added−6 removed

modified:requests/adapters.py+1 added-6 removed
383 unmodified lines
384 raise Timeout(e, request=request)385 else:386 raise387388 r = self.build_response(request, resp)389390 if not stream:391 r.content392393 return r388 return self.build_response(request, resp)
modified:requests/sessions.py+3 added
590 unmodified lines
591 # Get the last request made592 r = history.pop()593 r.history = history594595 if not stream:596 r.content597598 return r599600 def get_adapter(self, url):601 """Returns the appropriate connnection adapter for the given URL."""
36 unmodified lines