From 10fba0bcb772a2e46e758e4173d1ab99ec287e93 Mon Sep 17 00:00:00 2001 From: Jordan Cook Date: Thu, 20 Oct 2022 13:17:57 -0500 Subject: Add support for header values as bytes --- tests/unit/policy/test_actions.py | 1 + 1 file changed, 1 insertion(+) (limited to 'tests') 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), ], ) -- cgit v1.2.1