projects
/
tweepy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b64527a
)
Allow specifying your own ssl certificates.
author
Timo Ewalds
<tewalds@google.com>
Mon, 20 Oct 2014 22:45:16 +0000
(18:45 -0400)
committer
Timo Ewalds
<tewalds@google.com>
Mon, 20 Oct 2014 22:59:30 +0000
(18:59 -0400)
tweepy/streaming.py
patch
|
blob
|
blame
|
history
diff --git
a/tweepy/streaming.py
b/tweepy/streaming.py
index c29222002b5f5b5aa3d459c3af7b56f755f5bb6a..c18a19243a3c276a22761f2cac3c1267f9d72e46 100644
(file)
--- 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