From: Timo Ewalds Date: Mon, 20 Oct 2014 22:45:16 +0000 (-0400) Subject: Allow specifying your own ssl certificates. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=5fc17245633ee7f867b4e8da7fc4e177d62d5659;p=tweepy.git Allow specifying your own ssl certificates. --- diff --git a/tweepy/streaming.py b/tweepy/streaming.py index c292220..c18a192 100644 --- a/tweepy/streaming.py +++ b/tweepy/streaming.py @@ -137,6 +137,8 @@ class Stream(object): self.snooze_time_cap = options.get("snooze_time_cap", 16) self.buffer_size = options.get("buffer_size", 1500) + self.verify = options.get("verify", True) + self.api = API() self.session = requests.Session() self.session.headers = options.get("headers") or {} @@ -165,7 +167,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