diff --git a/linkcheck/checker/httpurl.py b/linkcheck/checker/httpurl.py index 5e20e108..e62d2637 100644 --- a/linkcheck/checker/httpurl.py +++ b/linkcheck/checker/httpurl.py @@ -19,6 +19,13 @@ Handle http links. """ import requests +# The validity of SSL certs is ignored to be able +# the check the URL and recurse into it. +# The warning about invalid SSL certs is given to the +# user instead. +import warnings +warnings.simplefilter('ignore', requests.packages.urllib3.exceptions.InsecureRequestWarning) + from cStringIO import StringIO from .. import (log, LOG_CHECK, strformat, mimeutil,