From 5fc17245633ee7f867b4e8da7fc4e177d62d5659 Mon Sep 17 00:00:00 2001 From: Timo Ewalds Date: Mon, 20 Oct 2014 18:45:16 -0400 Subject: [PATCH] Allow specifying your own ssl certificates. --- tweepy/streaming.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.25.1