Skip to content

Commit 203d665

Browse files
committed
リンクチェックCI : 外部リンクチェックを高速化。2倍近くは速くなったはず
1 parent f1d9bfb commit 203d665

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/script/link_check.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def retry_sleep():
1818
def check_url(url: str, retry: int = 5) -> (bool, str):
1919
try:
2020
headers = {'User-agent': 'Mozilla/5.0'}
21-
res = requests.get(url, headers=headers, verify=False, timeout=60.0)
21+
res = requests.head(url, headers=headers, verify=False, timeout=60.0)
2222
if res.url:
2323
if res.url == url:
2424
return res.status_code != 404, "404"

0 commit comments

Comments
 (0)