diff options
author | Jordan Cook <jordan.cook.git@proton.me> | 2022-10-20 13:17:57 -0500 |
---|---|---|
committer | Jordan Cook <jordan.cook.git@proton.me> | 2022-10-20 13:23:45 -0500 |
commit | 10fba0bcb772a2e46e758e4173d1ab99ec287e93 (patch) | |
tree | f16d1135f034ed8af8ac2aa0441efd7ba1072755 /tests | |
parent | acdbe633a80ae9a8d9deb20c1255124f7e159b33 (diff) | |
download | requests-cache-10fba0bcb772a2e46e758e4173d1ab99ec287e93.tar.gz |
Add support for header values as bytes
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/policy/test_actions.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/unit/policy/test_actions.py b/tests/unit/policy/test_actions.py index f5d4c4a..4ea133c 100644 --- a/tests/unit/policy/test_actions.py +++ b/tests/unit/policy/test_actions.py @@ -58,6 +58,7 @@ def test_init( ({'Expires': HTTPDATE_STR}, None), # Only valid for response headers ({'Cache-Control': 'max-age=60'}, 60), ({'Cache-Control': 'public, max-age=60'}, 60), + ({'Cache-Control': b'public, max-age=60'}, 60), # requests-oauthlib casts headers to bytes ({'Cache-Control': 'max-age=0'}, EXPIRE_IMMEDIATELY), ], ) |