]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Stop making an absolute URL for GoogleOAuth2Mixin
authorStephen McMillen <sclm3000@gmail.com>
Sun, 1 Sep 2013 16:02:08 +0000 (12:02 -0400)
committerStephen McMillen <sclm3000@gmail.com>
Sun, 1 Sep 2013 16:02:08 +0000 (12:02 -0400)
tornado/auth.py

index 8f28de22ff50aff6fe79bfade630797f1ed84a24..c88c6888a2dccaa4100682055e63d23ab364050f 100644 (file)
@@ -966,7 +966,7 @@ class GoogleOAuth2Mixin(OAuth2Mixin):
         })
 
         OAuth2Mixin.authorize_redirect(self,
-            self.request.protocol + '://' + self.request.host + (redirect_uri or self.request.uri),
+            (redirect_uri or self.request.uri),
             self.settings['google_consumer_key'],
             '', extra_params)