diff --git a/httpx/_utils.py b/httpx/_utils.py index cc1cbecd9d..875dd29d16 100644 --- a/httpx/_utils.py +++ b/httpx/_utils.py @@ -27,7 +27,7 @@ # Text codecs as supported by Chromium, Oct. 2023. # https://chromium.googlesource.com/chromium/chromium/+/refs/heads/trunk/chrome/browser/character_encoding.cc#36 -SUPPORTED_CODECS = [ +SUPPORTED_CODECS = { "utf-8", "utf-16le", "iso-8859-1", @@ -65,7 +65,7 @@ "iso-8859-10", "iso-8859-14", "iso-8859-16", -] +} def normalize_header_key(