aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_wsgi.py
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2015-09-05 18:15:47 +0200
committerMaximilian Hils <git@maximilianhils.com>2015-09-05 18:15:47 +0200
commit66ee1f465f6c492d5a4ff5659e6f0346fb243d67 (patch)
tree81599af6bf38402059dcf6f387dfcf9b599c375e /test/test_wsgi.py
parent3718e59308745e4582f4e8061b4ff6113d9dfc74 (diff)
downloadmitmproxy-66ee1f465f6c492d5a4ff5659e6f0346fb243d67.tar.gz
mitmproxy-66ee1f465f6c492d5a4ff5659e6f0346fb243d67.tar.bz2
mitmproxy-66ee1f465f6c492d5a4ff5659e6f0346fb243d67.zip
headers: adjust everything
Diffstat (limited to 'test/test_wsgi.py')
-rw-r--r--test/test_wsgi.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test_wsgi.py b/test/test_wsgi.py
index 41572d49..e26e1413 100644
--- a/test/test_wsgi.py
+++ b/test/test_wsgi.py
@@ -1,12 +1,12 @@
import cStringIO
import sys
-from netlib import wsgi, odict
+from netlib import wsgi
+from netlib.http import Headers
def tflow():
- h = odict.ODictCaseless()
- h["test"] = ["value"]
- req = wsgi.Request("http", "GET", "/", h, "")
+ headers = Headers(test="value")
+ req = wsgi.Request("http", "GET", "/", headers, "")
return wsgi.Flow(("127.0.0.1", 8888), req)