Unverified Commit a988dcb8 authored by Pierre-Yves Aillet's avatar Pierre-Yves Aillet Committed by GitHub
Browse files

Adjust links validation user-agent to real value (#1427)

parent dc903e6d
......@@ -24,7 +24,7 @@ def validate_links(links):
for link in links:
h = httplib2.Http(disable_ssl_certificate_validation=True, timeout=25)
try:
resp = h.request(link, headers={'user-agent': 'Mozilla/5.0'})
resp = h.request(link, headers={'user-agent': 'python-httplib2/0.9.2'})
code = int(resp[0]['status'])
# check if status code is a client or server error
if code >= 404:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment