From 87566da3babcc827e9dae0f2e9ab9154c353aa11 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Mon, 28 Sep 2015 11:18:00 +0200 Subject: fix mitmproxy/mitmproxy#784 --- test/http/http1/test_read.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/http') 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") -- cgit v1.2.3