mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 16:17:49 +00:00
Add test for empty header field value.
This commit is contained in:
parent
cf1889e157
commit
52c02bc930
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user