mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 00:24:13 +08:00
fix
This commit is contained in:
parent
836c747bde
commit
0657cfc6b7
@ -315,7 +315,7 @@ class Sessionbase:
|
|||||||
timeout,
|
timeout,
|
||||||
)
|
)
|
||||||
|
|
||||||
if allow_redirects and (
|
while allow_redirects and (
|
||||||
_.status_code == 301 or _.status_code == 302 or _.status_code == 307
|
_.status_code == 301 or _.status_code == 302 or _.status_code == 307
|
||||||
):
|
):
|
||||||
location = _.headers["Location"]
|
location = _.headers["Location"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user