From b732a1cb3d1a31e0827de60092badfe162e920a3 Mon Sep 17 00:00:00 2001 From: Thomas Kriechbaumer Date: Sat, 1 Aug 2015 14:36:31 +0200 Subject: reimplement streaming for HTTP/1 --- libmproxy/proxy/server.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libmproxy/proxy/server.py') diff --git a/libmproxy/proxy/server.py b/libmproxy/proxy/server.py index e77439fb..2f6ee061 100644 --- a/libmproxy/proxy/server.py +++ b/libmproxy/proxy/server.py @@ -117,7 +117,7 @@ class ConnectionHandler: self.server_conn.address(), "info") self.conntype = "tcp" - + elif not self.server_conn and self.config.mode == "sslspoof": port = self.config.mode.sslport self.set_server_address(("-", port)) @@ -243,7 +243,7 @@ class ConnectionHandler: ssl_cert_err = self.server_conn.ssl_verification_error if ssl_cert_err is not None: self.log( - "SSL verification failed for upstream server at depth %s with error: %s" % + "SSL verification failed for upstream server at depth %s with error: %s" % (ssl_cert_err['depth'], ssl_cert_err['errno']), "error") self.log("Ignoring server verification error, continuing with connection", "error") @@ -259,7 +259,7 @@ class ConnectionHandler: ssl_cert_err = self.server_conn.ssl_verification_error if ssl_cert_err is not None: self.log( - "SSL verification failed for upstream server at depth %s with error: %s" % + "SSL verification failed for upstream server at depth %s with error: %s" % (ssl_cert_err['depth'], ssl_cert_err['errno']), "error") self.log("Aborting connection attempt", "error") -- cgit v1.2.3