Skip to content
Myr

Merge pull request #37 from jgorset/requests

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

--- ![Meme](http://i.imgur.com/kXzcW.jpg)

authored by Kenneth Reitz · committed by Kenneth Reitz · parents 398f5b5, 8aa6fab · Browse files · 1 file+6 added−0 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+6 added−0 removed

  • other:+6 added−0 removed

1 file+6 added−0 removed

modified:requests/models.py+6 added
175 unmodified lines
176 history.append(r)177178 url = r.headers['location']179180 # Facilitate for non-RFC2616-compliant 'location' headers181 # (e.g. '/path/to/resource' instead of 'http://domain.tld/path/to/resource')182 if not urlparse(url).netloc:183 parent_url_components = urlparse(self.url)184 url = '%s://%s/%s' % (parent_url_components.scheme, parent_url_components.netloc, url)185186 # http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3.4187 if r.status_code is 303:188 method = 'GET'189 else:
314 unmodified lines