From 23363325408cbdec3da60f4effbee40d864d37ec Mon Sep 17 00:00:00 2001 From: xtaodada Date: Sun, 20 Mar 2022 20:11:48 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Follow=20redirects?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ci.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci.py b/ci.py index 95b78fa..4458be2 100644 --- a/ci.py +++ b/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) # 自定义类型