mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-27 02:24:18 +00:00
Adapt to netlib API changes.
This commit is contained in:
parent
9c9e15341f
commit
69339836c2
@ -35,7 +35,7 @@ class Pathoc(tcp.TCPClient):
|
|||||||
self.http_connect(connect_to, self.wfile, self.rfile)
|
self.http_connect(connect_to, self.wfile, self.rfile)
|
||||||
if self.ssl:
|
if self.ssl:
|
||||||
try:
|
try:
|
||||||
self.convert_to_ssl(sni=self.sni, clientcert=self.clientcert)
|
self.convert_to_ssl(sni=self.sni, cert=self.clientcert)
|
||||||
except tcp.NetLibError, v:
|
except tcp.NetLibError, v:
|
||||||
raise PathocError(str(v))
|
raise PathocError(str(v))
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ class TestTimeout(tutils.DaemonTests):
|
|||||||
def test_noweb(self):
|
def test_noweb(self):
|
||||||
# FIXME: Add float values to spec language, reduce test timeout to
|
# FIXME: Add float values to spec language, reduce test timeout to
|
||||||
# increase test performance
|
# increase test performance
|
||||||
tutils.raises("blank server response", self.pathoc, "get:/:p1,1")
|
tutils.raises("server disconnect", self.pathoc, "get:/:p1,1")
|
||||||
assert self.d.last_log()["type"] == "timeout"
|
assert self.d.last_log()["type"] == "timeout"
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user