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"]