From 0657cfc6b77f5dfcad0d936eed0925acbffe5e11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Mon, 8 Jul 2024 19:49:33 +0800 Subject: [PATCH] fix --- LunaTranslator/LunaTranslator/network/requests_common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LunaTranslator/LunaTranslator/network/requests_common.py b/LunaTranslator/LunaTranslator/network/requests_common.py index cad9890c..9484744e 100644 --- a/LunaTranslator/LunaTranslator/network/requests_common.py +++ b/LunaTranslator/LunaTranslator/network/requests_common.py @@ -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"]