requests-oauth icon indicating copy to clipboard operation
requests-oauth copied to clipboard

Signing broke with parameters that have a None value

Open samuraisam opened this issue 13 years ago • 0 comments

The following payload correctly signs

ret = sesh.put('/users/me', {'username': 'myusername', 'email': '[email protected]'})

However, if one of your parameters is None it does not correctly sign:

ret = sesh.put('/users/me', {'username': None, 'email': '[email protected]'})

The issue is that it tries to sign with the string "username=None" however it should ignore that parameter (as the requests library does). The requests library does not sign "None" paramters in POST bodies.

samuraisam avatar Sep 27 '12 03:09 samuraisam