Skip to content
Myr

Merge branch 'fix_redirect' of https://github.com/jerem/requests into develop

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

authored by Kenneth Reitz · committed by Kenneth Reitz · parents 6f84ce7, 824d54f · Browse files · 1 file+5 added−2 removed
This commit

State

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

Diff stats

1 file+5 added−2 removed

  • other:+5 added−2 removed

1 file+5 added−2 removed

modified:requests/models.py+5 added-2 removed
230 unmodified lines
231 url = '%s:%s' % (parsed_rurl.scheme, url)232233 # Facilitate non-RFC2616-compliant 'location' headers234 # (e.g. '/path/to/resource' instead of 'http://domain.tld/path/to/resource')235 if not urlparse(url).netloc:236 url = urljoin(r.url, urllib.quote(urllib.unquote(url)))235 parsed_url = urlparse(url)236 if not parsed_url.netloc:237 parsed_url = list(parsed_url)238 parsed_url[2] = urllib.quote(urllib.unquote(parsed_url[2]))239 url = urljoin(r.url, str(urlunparse(parsed_url)))240241 # http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3.4242 if r.status_code is codes.see_other:243 method = 'GET'
405 unmodified lines