Skip to content

Commit

Permalink
Call request_orig with kwargs. (#658)
Browse files Browse the repository at this point in the history
  • Loading branch information
busunkim96 authored May 17, 2019
1 parent 2560dc9 commit 1d2e240
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions googleapiclient/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1d2e240

Please sign in to comment.