Skip to content

Commit b21e50b

Browse files
authored
chore: update user agent for link check headers (#79)
1 parent 8b7481a commit b21e50b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

conf.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -465,11 +465,10 @@ def tagged_commit():
465465
ogp_use_first_image = True # if not found defaults to 'ogp_image'
466466

467467

468-
user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"
468+
user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:147.0) Gecko/20100101 Firefox/147.0"
469469

470470
linkcheck_request_headers = {
471-
r'https://docs.github.com/': {'User-Agent': 'Mozilla/5.0 (X11; Ubuntu; Linux i686; '
472-
'rv:24.0) Gecko/20100101 Firefox/24.0'}
471+
r'https://docs.github.com/': {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:147.0) Gecko/20100101 Firefox/147.0'}
473472
}
474473
linkcheck_ignore = [
475474
r".*linkcheck_ignore",

0 commit comments

Comments
 (0)