Skip to content
Myr

Fix invalid Content-Encoding header test (#197)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Quentin Pradet · committed by Seth Michael Larson · parent fde30b8 · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • tests:+2 added−2 removed

1 file+2 added−2 removed

modified:tests/test_decoders.py+2 added-2 removed
86 unmodified lines
87 response = httpx.Response(200, headers=headers, content=compressed_body)88 response.content899091def test_invalid_content_encoding_header(header_value):92 headers = [(b"Content-Encoding", header_value)]91def test_invalid_content_encoding_header():92 headers = [(b"Content-Encoding", b"invalid-header")]93 body = b"test 123"9495 response = httpx.Response(200, headers=headers, content=body)96
1 unmodified line