From 43b78568c788192f05c45d8a85adbdf1321716f9 Mon Sep 17 00:00:00 2001 From: Joshua Roesslein Date: Wed, 15 Jan 2014 18:53:46 -0800 Subject: [PATCH] Auth handlers should use HTTPS by default. --- tweepy/auth.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tweepy/auth.py b/tweepy/auth.py index 123ada5..29df5b2 100644 --- a/tweepy/auth.py +++ b/tweepy/auth.py @@ -27,7 +27,7 @@ class OAuthHandler(AuthHandler): OAUTH_HOST = 'api.twitter.com' OAUTH_ROOT = '/oauth/' - def __init__(self, consumer_key, consumer_secret, callback=None, secure=False): + def __init__(self, consumer_key, consumer_secret, callback=None, secure=True): if type(consumer_key) == unicode: consumer_key = bytes(consumer_key) @@ -42,7 +42,7 @@ class OAuthHandler(AuthHandler): self.username = None self.secure = secure - def _get_oauth_url(self, endpoint, secure=False): + def _get_oauth_url(self, endpoint, secure=True): if self.secure or secure: prefix = 'https://' else: -- 2.25.1