Skip to content
This repository has been archived by the owner on Jan 18, 2025. It is now read-only.

In OAuth2Credentials, only pass the first argument as positional. #167

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions oauth2client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -552,15 +552,19 @@ def new_request(uri, method='GET', body=None, headers=None,
else:
headers['user-agent'] = self.user_agent

resp, content = request_orig(uri, method, body, clean_headers(headers),
redirections, connection_type)
resp, content = request_orig(uri, method=method, body=body,
headers=clean_headers(headers),
redirections=redirections,
connection_type=connection_type)

if resp.status in REFRESH_STATUS_CODES:
logger.info('Refreshing due to a %s', resp.status)
self._refresh(request_orig)
self.apply(headers)
return request_orig(uri, method, body, clean_headers(headers),
redirections, connection_type)
return request_orig(uri, method=method, body=body,
headers=clean_headers(headers),
redirections=redirections,
connection_type=connection_type)
else:
return (resp, content)

Expand Down