diff options
author | Maximilian Hils <git@maximilianhils.com> | 2014-09-02 18:13:18 +0200 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2014-09-02 18:13:18 +0200 |
commit | 1e4e332ef9040928cb0548097e879d8e9a57f3a2 (patch) | |
tree | 683623e7801511a561afe521ab4c6b864c387f0a /test/test_server.py | |
parent | 1a41c15c039f871d5da85b6ce17e4f3006c4374a (diff) | |
download | mitmproxy-1e4e332ef9040928cb0548097e879d8e9a57f3a2.tar.gz mitmproxy-1e4e332ef9040928cb0548097e879d8e9a57f3a2.tar.bz2 mitmproxy-1e4e332ef9040928cb0548097e879d8e9a57f3a2.zip |
improve error handling
Diffstat (limited to 'test/test_server.py')
-rw-r--r-- | test/test_server.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_server.py b/test/test_server.py index 52efa5f2..a570f10f 100644 --- a/test/test_server.py +++ b/test/test_server.py @@ -179,7 +179,7 @@ class TestHTTPConnectSSLError(tservers.HTTPProxTest): p = self.pathoc_raw() dst = ("localhost", self.proxy.port) p.connect(connect_to=dst) - tutils.raises("400 - Bad Request", p.http_connect, dst) + tutils.raises("502 - Bad Gateway", p.http_connect, dst) class TestHTTPS(tservers.HTTPProxTest, CommonMixin): @@ -244,7 +244,7 @@ class TestTransparentSSL(tservers.TransparentProxTest, CommonMixin): p = pathoc.Pathoc(("localhost", self.proxy.port)) p.connect() r = p.request("get:/") - assert r.status_code == 502 + assert r.status_code == 400 class TestProxy(tservers.HTTPProxTest): |