diff options
author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2016-01-30 22:03:24 +0100 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2016-01-30 22:03:24 +0100 |
commit | d253ebc142d80708a1bdc065d3db05d1394e3819 (patch) | |
tree | 52769256609295723ce5cdd38031008b2891efbb /test/http/http1/test_assemble.py | |
parent | 283c74a0eab01b817ba8c7d9f0341f9084ceae66 (diff) | |
download | mitmproxy-d253ebc142d80708a1bdc065d3db05d1394e3819.tar.gz mitmproxy-d253ebc142d80708a1bdc065d3db05d1394e3819.tar.bz2 mitmproxy-d253ebc142d80708a1bdc065d3db05d1394e3819.zip |
fix test request and response headers
Diffstat (limited to 'test/http/http1/test_assemble.py')
-rw-r--r-- | test/http/http1/test_assemble.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/http/http1/test_assemble.py b/test/http/http1/test_assemble.py index ed94292d..31a62438 100644 --- a/test/http/http1/test_assemble.py +++ b/test/http/http1/test_assemble.py @@ -24,10 +24,11 @@ def test_assemble_request(): def test_assemble_request_head(): - c = assemble_request_head(treq()) + c = assemble_request_head(treq(content="foo")) assert b"GET" in c assert b"qvalue" in c - assert b"content" not in c + assert b"content-length" in c + assert b"foo" not in c def test_assemble_response(): |