]> git.ipfire.org Git - thirdparty/httpx.git/commitdiff
Fix invalid Content-Encoding header test (#197)
authorQuentin Pradet <quentin@pradet.me>
Fri, 9 Aug 2019 13:10:59 +0000 (17:10 +0400)
committerSeth Michael Larson <sethmichaellarson@gmail.com>
Fri, 9 Aug 2019 13:10:59 +0000 (08:10 -0500)
tests/test_decoders.py

index e292eb0662b5fb6449ea990257d39c659e7d0c43..83ad1ec126e473869249f642974232e86b43b412 100644 (file)
@@ -88,8 +88,8 @@ def test_decoding_errors(header_value):
         response.content
 
 
-def test_invalid_content_encoding_header(header_value):
-    headers = [(b"Content-Encoding", header_value)]
+def test_invalid_content_encoding_header():
+    headers = [(b"Content-Encoding", b"invalid-header")]
     body = b"test 123"
 
     response = httpx.Response(200, headers=headers, content=body)