diff options
author | Maximilian Hils <git@maximilianhils.com> | 2015-09-05 18:15:47 +0200 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2015-09-05 18:15:47 +0200 |
commit | 66ee1f465f6c492d5a4ff5659e6f0346fb243d67 (patch) | |
tree | 81599af6bf38402059dcf6f387dfcf9b599c375e /netlib/tutils.py | |
parent | 3718e59308745e4582f4e8061b4ff6113d9dfc74 (diff) | |
download | mitmproxy-66ee1f465f6c492d5a4ff5659e6f0346fb243d67.tar.gz mitmproxy-66ee1f465f6c492d5a4ff5659e6f0346fb243d67.tar.bz2 mitmproxy-66ee1f465f6c492d5a4ff5659e6f0346fb243d67.zip |
headers: adjust everything
Diffstat (limited to 'netlib/tutils.py')
-rw-r--r-- | netlib/tutils.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/netlib/tutils.py b/netlib/tutils.py index 7434c108..951ef3d9 100644 --- a/netlib/tutils.py +++ b/netlib/tutils.py @@ -5,7 +5,7 @@ import time import shutil from contextlib import contextmanager -from netlib import tcp, utils, odict, http +from netlib import tcp, utils, http def treader(bytes): @@ -73,8 +73,8 @@ def treq(content="content", scheme="http", host="address", port=22): """ @return: libmproxy.protocol.http.HTTPRequest """ - headers = odict.ODictCaseless() - headers["header"] = ["qvalue"] + headers = http.Headers() + headers["header"] = "qvalue" req = http.Request( "relative", "GET", @@ -108,8 +108,8 @@ def tresp(content="message"): @return: libmproxy.protocol.http.HTTPResponse """ - headers = odict.ODictCaseless() - headers["header_response"] = ["svalue"] + headers = http.Headers() + headers["header_response"] = "svalue" resp = http.semantics.Response( (1, 1), |