python-oauth2 icon indicating copy to clipboard operation
python-oauth2 copied to clipboard

cannot concatenate 'str' and 'NoneType' objects

Open abrarazeem opened this issue 13 years ago • 1 comments
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 avatar Nov 24 '11 18:11 abrarazeem

@abrarazeem if you push a regression test into a PR, I'll look into a fix.

joestump avatar Jul 29 '15 05:07 joestump