🐛 Follow redirects
This commit is contained in:
parent
1ee7a8b58a
commit
2336332540
2
ci.py
2
ci.py
@ -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)
|
||||
|
||||
|
||||
# 自定义类型
|
||||
|
Loading…
Reference in New Issue
Block a user