Skip to content

Signing broke with parameters that have a None value #37

Description

@samuraisam

The following payload correctly signs

ret = sesh.put('/users/me', {'username': 'myusername', 'email': 'myemail@test.net'})

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

ret = sesh.put('/users/me', {'username': None, 'email': 'myemail@test.net'})

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions