diff --git a/.github/workflows/script/link_check.py b/.github/workflows/script/link_check.py index fcb0c078f8..30c9286ddd 100644 --- a/.github/workflows/script/link_check.py +++ b/.github/workflows/script/link_check.py @@ -18,7 +18,7 @@ def retry_sleep(): def check_url(url: str, retry: int = 5) -> (bool, str): try: headers = {'User-agent': 'Mozilla/5.0'} - res = requests.get(url, headers=headers, verify=False, timeout=60.0) + res = requests.head(url, headers=headers, verify=False, timeout=60.0) if res.url: if res.url == url: return res.status_code != 404, "404"