mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
@@ -414,6 +414,9 @@ class Session(SessionRedirectMixin):
|
||||
# Total elapsed time of the request (approximately)
|
||||
r.elapsed = datetime.utcnow() - start
|
||||
|
||||
# Response manipulation hooks
|
||||
r = dispatch_hook('response', hooks, r)
|
||||
|
||||
# Redirect resolving generator.
|
||||
gen = self.resolve_redirects(r, request, stream=stream,
|
||||
timeout=timeout, verify=verify, cert=cert,
|
||||
@@ -430,9 +433,6 @@ class Session(SessionRedirectMixin):
|
||||
r = history.pop()
|
||||
r.history = tuple(history)
|
||||
|
||||
# Response manipulation hooks
|
||||
r = dispatch_hook('response', hooks, r)
|
||||
|
||||
return r
|
||||
|
||||
def get_adapter(self, url):
|
||||
|
||||
Reference in New Issue
Block a user