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

Update links validation user-agent (#1428)

parent 17058fbc
......@@ -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': 'python-httplib2/0.9.2'})
resp = h.request(link, headers={'user-agent': 'python-httplib2/0.18.0'})
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