Skip to content
Myr

Redirect chain flag default off.

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 · parent 1749260 · Browse files · 1 file+4 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+4 added−1 removed

  • other:+4 added−1 removed

1 file+4 added−1 removed

modified:requests/models.py+4 added-1 removed
30 unmodified lines
31 _METHODS = ('GET', 'HEAD', 'PUT', 'POST', 'DELETE')3233 def __init__(self, url=None, headers=dict(), files=None, method=None,34 data=dict(), auth=None, cookiejar=None, timeout=None,35 redirect=True, allow_redirects=False):35 redirect=False, allow_redirects=False):3637 socket.setdefaulttimeout(timeout)3839 #: Request URL.
94 unmodified lines
134 opener.addheaders.remove((key, val))135136 return opener.open137138139 def _build_response(self, resp):140 """Build internal :class:`Response <models.Response>` object from given response."""141142 def build(resp):
12 unmodified lines
155 response.content = zlib.decompress(response.content, 16+zlib.MAX_WBITS)156 except zlib.error:157 pass158159 # TODO: Support deflate160161 response.url = getattr(resp, 'url', None)162163 return response164
342 unmodified lines