Skip to content
Myr

HEADs don't follow redirects by default.

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 b355b67 · 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/sessions.py+1 added-1 removed
233 unmodified lines
234 :param url: URL for the new :class:`Request` object.235 :param **kwargs: Optional arguments that ``request`` takes.236 """237238 kwargs.setdefault('allow_redirects', True)238 kwargs.setdefault('allow_redirects', False)239 return self.request('head', url, **kwargs)240241242 def post(self, url, data=None, **kwargs):
55 unmodified lines