Skip to content

Commit 5b3c8ca

Browse files
committed
Implemented a 'fix' for a bug in certain OAuth providers. http://bit.ly/aUrH43
1 parent ab76195 commit 5b3c8ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

oauth2/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ def to_postdata(self):
325325
# tell urlencode to deal with sequence values and map them correctly
326326
# to resulting querystring. for example self["k"] = ["v1", "v2"] will
327327
# result in 'k=v1&k=v2' and not k=%5B%27v1%27%2C+%27v2%27%5D
328-
return urllib.urlencode(self, True)
328+
return urllib.urlencode(self, True).replace('+', '%20')
329329

330330
def to_url(self):
331331
"""Serialize as a URL for a GET request."""

0 commit comments

Comments
 (0)