mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-04-24 02:20:38 +08:00
Fix Proxy cause check problem
This commit is contained in:
@@ -55,7 +55,8 @@ class RequestURL:
|
||||
if "://" not in url:
|
||||
url = f"http://{url}"
|
||||
try:
|
||||
req = self.session.head(url=url, headers=self.header, timeout=5)
|
||||
|
||||
req = requests.head(url=url, headers=self.header, timeout=5)
|
||||
req.raise_for_status()
|
||||
return True
|
||||
except requests.RequestException as e:
|
||||
|
||||
Reference in New Issue
Block a user