Skip to content
Myr

Document that `request.head` defaults `allow_redirects` to `False`

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

authored by Jacek Kołodziej · committed by Jacek Kołodziej · parent 4983a9b · Browse files · 1 file+3 added−1 removed
This commit

State

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

Trailers

  • Related: kennethreitz/requests#4274

Diff stats

1 file+3 added−1 removed

  • other:+3 added−1 removed

1 file+3 added−1 removed

modified:requests/api.py+3 added-1 removed
90 unmodified lines
91def head(url, **kwargs):92 r"""Sends a HEAD request.9394 :param url: URL for the new :class:`Request` object.95 :param \*\*kwargs: Optional arguments that ``request`` takes.95 :param \*\*kwargs: Optional arguments that ``request`` takes. If96 `allow_redirects` is not provided, it will be set to `False` (as97 opposed to the default :meth:`request` behavior).98 :return: :class:`Response <Response>` object99 :rtype: requests.Response100 """101
59 unmodified lines