Commit 12006b4f authored by Sigmund Augdal's avatar Sigmund Augdal

Verify certificate on requests to spf

Fixes warnings with newer versions of urllib3 (and possible man in the middle attacks)
parent 5362bcae
...@@ -126,7 +126,7 @@ class Client(object): ...@@ -126,7 +126,7 @@ class Client(object):
if self.principal: if self.principal:
headers["x-ms-principal-id"] = self.principal headers["x-ms-principal-id"] = self.principal
resp = self.session.request(method, url, data=reqdata, headers=headers, resp = self.session.request(method, url, data=reqdata, headers=headers,
auth=self.auth, verify=False) auth=self.auth, verify=True)
data = resp.content data = resp.content
if not data: if not data:
return None return None
......
Markdown is supported
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