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 /netlib/tutils.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 'netlib/tutils.py')
-rw-r--r-- | netlib/tutils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/netlib/tutils.py b/netlib/tutils.py index e16f1a76..14b4ef06 100644 --- a/netlib/tutils.py +++ b/netlib/tutils.py @@ -105,7 +105,7 @@ def treq(**kwargs): port=22, path=b"/path", http_version=b"HTTP/1.1", - headers=Headers(header="qvalue"), + headers=Headers(header="qvalue", content_length="7"), content=b"content" ) default.update(kwargs) @@ -121,7 +121,7 @@ def tresp(**kwargs): http_version=b"HTTP/1.1", status_code=200, reason=b"OK", - headers=Headers(header_response="svalue"), + headers=Headers(header_response="svalue", content_length="7"), content=b"message", timestamp_start=time.time(), timestamp_end=time.time(), |