requests-oauth
requests-oauth copied to clipboard
Signing broke with parameters that have a None value
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.