aboutsummaryrefslogtreecommitdiffstats
path: root/test/http/http1/test_read.py
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2015-09-28 11:18:00 +0200
committerMaximilian Hils <git@maximilianhils.com>2015-09-28 11:18:00 +0200
commit87566da3babcc827e9dae0f2e9ab9154c353aa11 (patch)
tree148ecc7db70dcec9e86c93486defdd4689339b3e /test/http/http1/test_read.py
parent45f2ea33b2fdb67ca89e7eedd860ebe683770497 (diff)
downloadmitmproxy-87566da3babcc827e9dae0f2e9ab9154c353aa11.tar.gz
mitmproxy-87566da3babcc827e9dae0f2e9ab9154c353aa11.tar.bz2
mitmproxy-87566da3babcc827e9dae0f2e9ab9154c353aa11.zip
fix mitmproxy/mitmproxy#784
Diffstat (limited to 'test/http/http1/test_read.py')
-rw-r--r--test/http/http1/test_read.py4
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")