Commit 0c19a88e authored by Joshua Roesslein's avatar Joshua Roesslein
Browse files

Merge pull request #497 from tewalds/cert

Allow specifying your own ssl certificates.
parents cdf2aae1 5fc17245
......@@ -197,6 +197,8 @@ class Stream(object):
# fewer socket read calls.
self.chunk_size = options.get("chunk_size", 512)
self.verify = options.get("verify", True)
self.api = API()
self.session = requests.Session()
self.session.headers = options.get("headers") or {}
......@@ -225,7 +227,8 @@ class Stream(object):
data=self.body,
timeout=self.timeout,
stream=True,
auth=auth)
auth=auth,
verify=self.verify)
if resp.status_code != 200:
if self.listener.on_error(resp.status_code) is False:
break
......
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