diff --git a/googleapiclient/http.py b/googleapiclient/http.py index 4949d0cf356..5caca19c468 100644 --- a/googleapiclient/http.py +++ b/googleapiclient/http.py @@ -1720,8 +1720,8 @@ def new_request(uri, method='GET', body=None, headers=None, headers['user-agent'] = user_agent + ' ' + headers['user-agent'] else: headers['user-agent'] = user_agent - resp, content = request_orig(uri, method, body, headers, - redirections, connection_type) + resp, content = request_orig(uri, method=method, body=body, headers=headers, + redirections=redirections, connection_type=connection_type) return resp, content http.request = new_request @@ -1761,8 +1761,8 @@ def new_request(uri, method='GET', body=None, headers=None, 'OAuth 1.0 request made with Credentials after tunnel_patch.') headers['x-http-method-override'] = "PATCH" method = 'POST' - resp, content = request_orig(uri, method, body, headers, - redirections, connection_type) + resp, content = request_orig(uri, method=method, body=body, headers=headers, + redirections=redirections, connection_type=connection_type) return resp, content http.request = new_request