mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-27 10:26:23 +00:00
WIP. Add breaking test.
This commit is contained in:
parent
c1385c9a17
commit
cf1889e157
@ -297,6 +297,13 @@ class TestReadHeaders(object):
|
||||
with raises(HttpSyntaxException):
|
||||
self._read(data)
|
||||
|
||||
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)
|
||||
|
||||
def test_read_chunked():
|
||||
req = treq(content=None)
|
||||
|
Loading…
Reference in New Issue
Block a user