Skip to content
Myr

Fix #1146 Set default allow_redirects to true (#1183)

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

* Set default allow_redirects to true * Set default allow_redirects to true * Fix line-too-long linting error by removing comments

authored by Skyler Dong · committed by GitHub · parent 891d865 · Browse files · 2 files+3 added−3 removed
This commit

State

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

Diff stats

2 files+3 added−3 removed

  • other:+3 added−3 removed

2 files+3 added−3 removed

modified:httpx/_api.py+1 added-1 removed
212 unmodified lines
213 params: QueryParamTypes = None,214 headers: HeaderTypes = None,215 cookies: CookieTypes = None,216 auth: AuthTypes = None,217 allow_redirects: bool = False, # Note: Differs to usual default.217 allow_redirects: bool = True,218 cert: CertTypes = None,219 verify: VerifyTypes = True,220 timeout: TimeoutTypes = DEFAULT_TIMEOUT_CONFIG,221 trust_env: bool = True,
177 unmodified lines
modified:httpx/_client.py+2 added-2 removed
847 unmodified lines
848 params: QueryParamTypes = None,849 headers: HeaderTypes = None,850 cookies: CookieTypes = None,851 auth: typing.Union[AuthTypes, UnsetType] = UNSET,852 allow_redirects: bool = False, # NOTE: Differs to usual default.852 allow_redirects: bool = True,853 timeout: typing.Union[TimeoutTypes, UnsetType] = UNSET,854 ) -> Response:855 """856 Send a `HEAD` request.
595 unmodified lines
1452 params: QueryParamTypes = None,1453 headers: HeaderTypes = None,1454 cookies: CookieTypes = None,1455 auth: typing.Union[AuthTypes, UnsetType] = UNSET,1456 allow_redirects: bool = False, # NOTE: Differs to usual default.1456 allow_redirects: bool = True,1457 timeout: typing.Union[TimeoutTypes, UnsetType] = UNSET,1458 ) -> Response:1459 """1460 Send a `HEAD` request.
220 unmodified lines