Skip to content
Merged
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
2 changes: 1 addition & 1 deletion requests_oauthlib/oauth1_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ def _fetch_token(self, url, **request_kwargs):

log.debug('Decoding token from response "%s"', r.text)
try:
token = dict(urldecode(r.text))
token = dict(urldecode(r.text.strip()))
except ValueError as e:
error = ("Unable to decode token from token response. "
"This is commonly caused by an unsuccessful request where"
Expand Down