Skip to content
Myr

Fix #1106

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

authored by Ian Cordasco · committed by Ian Cordasco · parent 16ba63c · Browse files · 2 files+1 added−4 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+1 added−4 removed

  • other:+1 added−4 removed

2 files+1 added−4 removed

modified:requests/adapters.py-3 removed
11 unmodified lines
1213from .models import Response14from .packages.urllib3.poolmanager import PoolManager, ProxyManager15from .packages.urllib3.response import HTTPResponse16from .hooks import dispatch_hook16from .compat import urlparse, basestring, urldefrag17from .utils import (DEFAULT_CA_BUNDLE_PATH, get_encoding_from_headers,18 prepend_scheme_if_needed)19from .structures import CaseInsensitiveDict
87 unmodified lines
107 # Give the Response some context.108 response.request = req109 response.connection = self110112 # Run the Response hook.113 response = dispatch_hook('response', req.hooks, response)111 return response112113 def get_connection(self, url, proxies=None):114 """Returns a connection for the given URL."""
107 unmodified lines
modified:requests/sessions.py+1 added-1 removed
293 unmodified lines
294 resp = history.pop()295 resp.history = tuple(history)296297 # Response manipulation hook.298 self.response = dispatch_hook('response', hooks, resp)298 resp = dispatch_hook('response', hooks, resp)299300 return resp301302 def get(self, url, **kwargs):
105 unmodified lines