diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2015-04-30 08:41:13 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2015-04-30 08:41:13 +1200 |
commit | b7a2fc85537dca60fb18d25965289d876bd3bd38 (patch) | |
tree | fc6f70cb94d2e46036b2f0800635d01da5f89b7f /test/test_http.py | |
parent | 18df329930eb822395caf279862589d2a40413c9 (diff) | |
download | mitmproxy-b7a2fc85537dca60fb18d25965289d876bd3bd38.tar.gz mitmproxy-b7a2fc85537dca60fb18d25965289d876bd3bd38.tar.bz2 mitmproxy-b7a2fc85537dca60fb18d25965289d876bd3bd38.zip |
testing: http read_request corner case
Diffstat (limited to 'test/test_http.py')
-rw-r--r-- | test/test_http.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_http.py b/test/test_http.py index 962eb9cb..f1a31b93 100644 --- a/test/test_http.py +++ b/test/test_http.py @@ -440,6 +440,11 @@ class TestReadRequest(): self.tst, "get / HTTP/1.1\r\nfoo" ) + tutils.raises( + tcp.NetLibDisconnect, + self.tst, + "\r\n" + ) def test_asterisk_form_in(self): v = self.tst("OPTIONS * HTTP/1.1") |