@@ -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