@@ -1720,8 +1720,8 @@ def new_request(uri, method='GET', body=None, headers=None,
1720
1720
headers ['user-agent' ] = user_agent + ' ' + headers ['user-agent' ]
1721
1721
else :
1722
1722
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 )
1725
1725
return resp , content
1726
1726
1727
1727
http .request = new_request
@@ -1761,8 +1761,8 @@ def new_request(uri, method='GET', body=None, headers=None,
1761
1761
'OAuth 1.0 request made with Credentials after tunnel_patch.' )
1762
1762
headers ['x-http-method-override' ] = "PATCH"
1763
1763
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 )
1766
1766
return resp , content
1767
1767
1768
1768
http .request = new_request
0 commit comments