diff options
author | Maximilian Hils <git@maximilianhils.com> | 2020-04-04 15:00:51 +0200 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2020-04-04 15:08:12 +0200 |
commit | 9897ca7227d756453189802aa2bda1d4ba129875 (patch) | |
tree | 046537a9d90b080d23df5ddca46ebe9b647e1ebc /test | |
parent | 6acabbb4f5977427dd08adb0d32b06c0007315d2 (diff) | |
download | mitmproxy-9897ca7227d756453189802aa2bda1d4ba129875.tar.gz mitmproxy-9897ca7227d756453189802aa2bda1d4ba129875.tar.bz2 mitmproxy-9897ca7227d756453189802aa2bda1d4ba129875.zip |
sync sans-io adjustments
Diffstat (limited to 'test')
-rw-r--r-- | test/mitmproxy/net/http/http1/test_read.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/mitmproxy/net/http/http1/test_read.py b/test/mitmproxy/net/http/http1/test_read.py index 4084c360..127f75ba 100644 --- a/test/mitmproxy/net/http/http1/test_read.py +++ b/test/mitmproxy/net/http/http1/test_read.py @@ -163,6 +163,11 @@ def test_expected_http_body_size(): assert expected_http_body_size( treq(headers=Headers(expect="100-continue", content_length="42")) ) == 0 + # Expect: 100-continue + assert expected_http_body_size( + treq(headers=Headers(expect="100-continue", content_length="42")), + expect_continue_as_0=False + ) == 42 # http://tools.ietf.org/html/rfc7230#section-3.3 assert expected_http_body_size( |