Skip to content

Commit

Permalink
Merge 62c8e76 into 36f24b4
Browse files Browse the repository at this point in the history
  • Loading branch information
jtroussard committed Sep 24, 2019
2 parents 36f24b4 + 62c8e76 commit 8e71187
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions requests_oauthlib/oauth2_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,10 @@ def request(

log.debug("Adding token %s to request.", self.token)
try:
old_version_url = url
# Chk for and remove duplicate access token value in url
if "&access_token=" in url:
url = old_version_url
url, headers, data = self._client.add_token(
url, http_method=method, body=data, headers=headers
)
Expand Down

0 comments on commit 8e71187

Please sign in to comment.