Fix invalid Content-Encoding header test (#197)

This commit is contained in:
Quentin Pradet 2019-08-09 17:10:59 +04:00 committed by Seth Michael Larson
parent fde30b8d14
commit ebbc003c55

View 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)