This commit is contained in:
恍兮惚兮 2024-07-08 19:49:33 +08:00
parent 836c747bde
commit 0657cfc6b7

View File

@ -315,7 +315,7 @@ class Sessionbase:
timeout,
)
if allow_redirects and (
while allow_redirects and (
_.status_code == 301 or _.status_code == 302 or _.status_code == 307
):
location = _.headers["Location"]