summaryrefslogtreecommitdiff
path: root/jwt/algorithms.py
diff options
context:
space:
mode:
authorErik Vroon <erik.vroon22@gmail.com>2022-12-08 16:50:04 +0100
committerGitHub <noreply@github.com>2022-12-08 21:50:04 +0600
commitfb9b3119449353dca6c03be27f32e482852473c3 (patch)
tree0b10044a153b01733d4186b2bf3dc04f03878769 /jwt/algorithms.py
parent2fc6aa3ffecb54325d44ef076d4eff7418e97a81 (diff)
downloadpyjwt-fb9b3119449353dca6c03be27f32e482852473c3.tar.gz
Add `sort_headers` parameter to `api_jwt.encode` (#832)
* Add `sort_headers` parameter to `api_jwt.encode` This allows you to not sort headers, which prevents a breaking change between v2.4.0 and v2.5.0 * Add `test_sorting_headers` test * Remove outdated comment about misordered headers * Explicity assert sorting in `test_sorting_of_headers` * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Parametrize `test_sorting_of_headers` * Use normal dict in `test_sorting_of_headers` * fixup! Use normal dict in `test_sorting_of_headers` Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Diffstat (limited to 'jwt/algorithms.py')
0 files changed, 0 insertions, 0 deletions