mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-17 02:51:07 +00:00
Use SSL cert on Windows systems.
This commit is contained in:
parent
4dc70f520e
commit
121602df87
1 changed files with 5 additions and 0 deletions
|
|
@ -525,6 +525,11 @@ def get_content(url, user=None, password=None, proxy=None, data=None,
|
|||
method = 'POST'
|
||||
if proxy:
|
||||
kwargs['proxy'] = dict(http=proxy)
|
||||
from .configuration import get_share_file
|
||||
try:
|
||||
kwargs["verify"] = get_share_file('cacert.pem')
|
||||
except ValueError:
|
||||
pass
|
||||
try:
|
||||
response = requests.request(method, url, **kwargs)
|
||||
return response.text, response.headers
|
||||
|
|
|
|||
Loading…
Reference in a new issue