Skip to content

Add custom headers support to jwt.encode#7

Merged
mpdavis merged 3 commits intompdavis:masterfrom
petercgrant:add-custom-headers-support
Nov 11, 2015
Merged

Add custom headers support to jwt.encode#7
mpdavis merged 3 commits intompdavis:masterfrom
petercgrant:add-custom-headers-support

Conversation

@petercgrant
Copy link

The docs for jwt.encode suggest that it supports custom headers, but the headers argument wasn't present.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Python 2.6 doesn't support dict comprehension so you will probably have to do this the longer way. Something like this should work.

for k, v in headers.items():
    assert all_headers[k] == v

@mpdavis
Copy link
Owner

mpdavis commented Nov 11, 2015

Looks good. Thanks for the contribution.

mpdavis pushed a commit that referenced this pull request Nov 11, 2015
Add custom headers support to jwt.encode
@mpdavis mpdavis merged commit 92958eb into mpdavis:master Nov 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants