Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1d2e240

Browse files
authored
Call request_orig with kwargs. (googleapis#658)
1 parent 2560dc9 commit 1d2e240

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

googleapiclient/http.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1720,8 +1720,8 @@ def new_request(uri, method='GET', body=None, headers=None,
17201720
headers['user-agent'] = user_agent + ' ' + headers['user-agent']
17211721
else:
17221722
headers['user-agent'] = user_agent
1723-
resp, content = request_orig(uri, method, body, headers,
1724-
redirections, connection_type)
1723+
resp, content = request_orig(uri, method=method, body=body, headers=headers,
1724+
redirections=redirections, connection_type=connection_type)
17251725
return resp, content
17261726

17271727
http.request = new_request
@@ -1761,8 +1761,8 @@ def new_request(uri, method='GET', body=None, headers=None,
17611761
'OAuth 1.0 request made with Credentials after tunnel_patch.')
17621762
headers['x-http-method-override'] = "PATCH"
17631763
method = 'POST'
1764-
resp, content = request_orig(uri, method, body, headers,
1765-
redirections, connection_type)
1764+
resp, content = request_orig(uri, method=method, body=body, headers=headers,
1765+
redirections=redirections, connection_type=connection_type)
17661766
return resp, content
17671767

17681768
http.request = new_request

0 commit comments

Comments
 (0)