Connect to streaming API using HTTPS by default.
authorJoshua Roesslein <jroesslein@gmail.com>
Thu, 20 Oct 2011 18:15:43 +0000 (13:15 -0500)
committerJoshua Roesslein <jroesslein@gmail.com>
Thu, 20 Oct 2011 18:15:43 +0000 (13:15 -0500)
https://dev.twitter.com/blog/streaming-api-turning-ssl-only-september-29th

tweepy/streaming.py

index 213ccbaeb34b8a4e5a28527f1858dc020e3163a1..2e5c7e80675162d758e8463a3903b20a77d11111 100644 (file)
@@ -76,7 +76,7 @@ class Stream(object):
         self.retry_time = options.get("retry_time", 10.0)
         self.snooze_time = options.get("snooze_time",  5.0)
         self.buffer_size = options.get("buffer_size",  1500)
-        if options.get("secure"):
+        if options.get("secure", True):
             self.scheme = "https"
         else:
             self.scheme = "http"