Skip to content

Commit

Permalink
make order of headers repeatable
Browse files Browse the repository at this point in the history
Signed-off-by: Sergey Chvalyuk <grubberr@gmail.com>
  • Loading branch information
grubberr committed Dec 17, 2021
1 parent 71ea521 commit 3d5f55d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions requests_cache/cache_keys.py
Expand Up @@ -81,6 +81,7 @@ def get_matched_headers(
else:
included = set(headers) - DEFAULT_EXCLUDE_HEADERS

included = sorted(included, key=lambda x:x.lower())
return [f'{k.lower()}={headers[k]}' for k in included if k in headers]


Expand Down

0 comments on commit 3d5f55d

Please sign in to comment.