🐛 Follow redirects

This commit is contained in:
xtaodada 2022-03-20 20:11:48 +08:00
parent 1ee7a8b58a
commit 2336332540
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

2
ci.py
View File

@ -34,7 +34,7 @@ channel_id = config.getint("basic", "channel_id", fallback=channel_id)
headers = {
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36"
}
client = AsyncClient(timeout=10.0, headers=headers)
client = AsyncClient(timeout=10.0, headers=headers, follow_redirects=True)
# 自定义类型