From 2dc3670c44e53632da05d9a57afc94401f216f99 Mon Sep 17 00:00:00 2001 From: Joshua Roesslein Date: Thu, 20 Oct 2011 13:15:43 -0500 Subject: [PATCH] Connect to streaming API using HTTPS by default. https://dev.twitter.com/blog/streaming-api-turning-ssl-only-september-29th --- tweepy/streaming.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tweepy/streaming.py b/tweepy/streaming.py index 213ccba..2e5c7e8 100644 --- a/tweepy/streaming.py +++ b/tweepy/streaming.py @@ -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" -- 2.25.1