From: Joshua Roesslein Date: Thu, 16 Jan 2014 02:53:46 +0000 (-0800) Subject: Auth handlers should use HTTPS by default. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=43b78568c788192f05c45d8a85adbdf1321716f9;p=tweepy.git Auth handlers should use HTTPS by default. --- 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: