aboutsummaryrefslogtreecommitdiffstats
path: root/test/http/http1/test_read.py
diff options
context:
space:
mode:
authorBenjamin Lee <benjamin.lee@realthought.net>2015-11-17 06:51:22 +1100
committerBenjamin Lee <benjamin.lee@realthought.net>2015-11-17 06:51:22 +1100
commit52c02bc930b380f741b9bb295aa019e22687d5d3 (patch)
tree872aff4aefc9cc599cca4915fc65e80817f305f5 /test/http/http1/test_read.py
parentcf1889e1575dbeb1257c37e97193fce1d2e65244 (diff)
downloadmitmproxy-52c02bc930b380f741b9bb295aa019e22687d5d3.tar.gz
mitmproxy-52c02bc930b380f741b9bb295aa019e22687d5d3.tar.bz2
mitmproxy-52c02bc930b380f741b9bb295aa019e22687d5d3.zip
Add test for empty header field value.
Diffstat (limited to 'test/http/http1/test_read.py')
-rw-r--r--test/http/http1/test_read.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/test/http/http1/test_read.py b/test/http/http1/test_read.py
index 4524e1d0..8a315508 100644
--- a/test/http/http1/test_read.py
+++ b/test/http/http1/test_read.py
@@ -300,10 +300,7 @@ class TestReadHeaders(object):
def test_read_empty_value(self):
data = b"bar:"
headers = self._read(data)
- # XXX. WIP. break test
- # assert headers.fields == [[b"bar", b""]]
- with raises(HttpSyntaxException):
- self._read(data)
+ assert headers.fields == [[b"bar", b""]]
def test_read_chunked():
req = treq(content=None)