python-oauth2
python-oauth2 copied to clipboard
cannot concatenate 'str' and 'NoneType' objects
trafficstars
import oauth2 as oauth
i have create a client using oauth2 GET works well but when i try to specify the body of the post it gave an error client = oauth.Client(consumer,token)
resp, content = client.request('http://127.0.0.1:8000/api/posts/ ','POST',body=urllib.urlencode({'foo':'bar','hello':world'}))
build\bdist.win32\egg\oauth2__init__.py in request
realm = schema + ':' + hierpart + host
@abrarazeem if you push a regression test into a PR, I'll look into a fix.