Skip to content
Myr

Join with the latest URL not the first one.

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

authored by Jeremy Selier · committed by Jeremy Selier · parent 291d474 · Browse files · 1 file+1 added−1 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+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:requests/models.py+1 added-1 removed
195 unmodified lines
196 url = r.headers['location']197198 # Facilitate non-RFC2616-compliant 'location' headers199 # (e.g. '/path/to/resource' instead of 'http://domain.tld/path/to/resource')200 url = urljoin(self.url, url)200 url = urljoin(r.url, url)201202 # http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3.4203 if r.status_code is 303:204 method = 'GET'
360 unmodified lines