diff options
Diffstat (limited to 'test/http/http1/test_read.py')
-rw-r--r-- | test/http/http1/test_read.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/http/http1/test_read.py b/test/http/http1/test_read.py index 9eb02a24..36cf7e1d 100644 --- a/test/http/http1/test_read.py +++ b/test/http/http1/test_read.py @@ -211,6 +211,10 @@ def test_read_response_line(): assert t(b"HTTP/1.1 200 OK") == (b"HTTP/1.1", 200, b"OK") assert t(b"HTTP/1.1 200") == (b"HTTP/1.1", 200, b"") + + # https://github.com/mitmproxy/mitmproxy/issues/784 + assert t(b"HTTP/1.1 200") == (b"HTTP/1.1 Non-Autoris\xc3\xa9", 200, b"") + with raises(HttpSyntaxException): assert t(b"HTTP/1.1") |