We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a6f9e88 + 9b7b162 commit e73aebeCopy full SHA for e73aebe
1 file changed
tests/linkchecker.py
@@ -16,7 +16,8 @@ def check_url(url, file):
16
# replace any backslash with forward slash
17
url = url.replace('\\', '/')
18
19
- response = requests.get(url, timeout=30)
+ headers = {'User-Agent': 'Mozilla/5.0'}
20
+ response = requests.get(url, headers=headers, timeout=30)
21
22
if response.status_code == 200:
23
# print('Checking url: ' + url + ' in file: ' + file)
0 commit comments