diff options
author | Benjamin Lee <benjamin.lee@realthought.net> | 2015-11-17 06:51:22 +1100 |
---|---|---|
committer | Benjamin Lee <benjamin.lee@realthought.net> | 2015-11-17 06:51:22 +1100 |
commit | 52c02bc930b380f741b9bb295aa019e22687d5d3 (patch) | |
tree | 872aff4aefc9cc599cca4915fc65e80817f305f5 | |
parent | cf1889e1575dbeb1257c37e97193fce1d2e65244 (diff) | |
download | mitmproxy-52c02bc930b380f741b9bb295aa019e22687d5d3.tar.gz mitmproxy-52c02bc930b380f741b9bb295aa019e22687d5d3.tar.bz2 mitmproxy-52c02bc930b380f741b9bb295aa019e22687d5d3.zip |
Add test for empty header field value.
-rw-r--r-- | test/http/http1/test_read.py | 5 |
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) |