aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_pathod.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2013-01-05 17:06:41 +1300
committerAldo Cortesi <aldo@nullcube.com>2013-01-05 17:15:42 +1300
commitc744ef2dcbb95182668ed8897542029c6c6734b9 (patch)
tree143b97667093615c43f25b93dcb4f21b84eea21a /test/test_pathod.py
parent1e932e704577ff8159f93d424d4b7041dec29eea (diff)
downloadmitmproxy-c744ef2dcbb95182668ed8897542029c6c6734b9.tar.gz
mitmproxy-c744ef2dcbb95182668ed8897542029c6c6734b9.tar.bz2
mitmproxy-c744ef2dcbb95182668ed8897542029c6c6734b9.zip
Proxy mode: drop to SSL if we see an HTTP CONNECT request
Diffstat (limited to 'test/test_pathod.py')
-rw-r--r--test/test_pathod.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test_pathod.py b/test/test_pathod.py
index 072d5623..0936fce3 100644
--- a/test/test_pathod.py
+++ b/test/test_pathod.py
@@ -143,6 +143,10 @@ class CommonTests(tutils.DaemonTests):
assert rsp.status_code == 800
assert "File access denied" in rsp.content
+ def test_proxy(self):
+ v = self.pathoc(r"get:'http://foo.com/p/202':da")
+ assert v[1] == 202
+
class TestDaemon(CommonTests):
ssl = False