From d8cc45800f4eb945f2fe573f3ab6a8d944140cb5 Mon Sep 17 00:00:00 2001 From: Joe Gregorio Date: Tue, 26 Nov 2013 16:06:56 -0500 Subject: [PATCH] imported patch kwargs --- oauth2client/appengine.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/oauth2client/appengine.py b/oauth2client/appengine.py index 5cd3f4b..a001350 100644 --- a/oauth2client/appengine.py +++ b/oauth2client/appengine.py @@ -798,14 +798,18 @@ class OAuth2Decorator(object): url = self.flow.step1_get_authorize_url() return str(url) - def http(self): + def http(self, *args, **kwargs): """Returns an authorized http instance. Must only be called from within an @oauth_required decorated method, or from within an @oauth_aware decorated method where has_credentials() returns True. + + Args: + args: Positional arguments passed to httplib2.Http constructor. + kwargs: Positional arguments passed to httplib2.Http constructor. """ - return self.credentials.authorize(httplib2.Http()) + return self.credentials.authorize(httplib2.Http(*args, **kwargs)) @property def callback_path(self):