Skip to content

Commit

Permalink
Small performance improvement to handling redirects (#9467)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco authored Oct 11, 2024
1 parent c1dc794 commit 2b13e3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aiohttp/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -742,8 +742,8 @@ async def _request(
) from origin_val_err

if (
url.origin() != redirect_origin
and not is_same_host_https_redirect
not is_same_host_https_redirect
and url.origin() != redirect_origin
):
auth = None
headers.pop(hdrs.AUTHORIZATION, None)
Expand Down

0 comments on commit 2b13e3b

Please sign in to comment.