Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Zahra Rajabi
tweepy
Commits
5fc17245
Commit
5fc17245
authored
Oct 20, 2014
by
Timo Ewalds
Browse files
Allow specifying your own ssl certificates.
parent
b64527ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
tweepy/streaming.py
View file @
5fc17245
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment