Skip to content

Commit

Permalink
Update header data
Browse files Browse the repository at this point in the history
  • Loading branch information
beutlich committed Jan 15, 2025
1 parent d36cbd1 commit 0f039b4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .CI/checkHTMLDoc/checkLinks.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,12 @@ def _checkURL(url):
except:
pass
try:
headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; Win64; x64)'}
headers = {
"Accept": "application/json",
"Accept-Encoding": "gzip, deflate, br, zstd",
"Accept-Language": "de,en-US;q=0.7,en;q=0.3",
'User-Agent': '"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0',
}
rc = urllib2.urlopen(urllib2.Request(url, None, headers), context=ssl._create_unverified_context()).getcode()
except urllib2.HTTPError as e:
rc = e.code
Expand Down

0 comments on commit 0f039b4

Please sign in to comment.