From c04d14e53c9dee6cc36f840ee5d20deb09d8933b Mon Sep 17 00:00:00 2001 From: Thomas Kriechbaumer Date: Fri, 17 Feb 2017 22:42:40 +0100 Subject: fix #1916 --- mitmproxy/net/http/http1/read.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mitmproxy/net/http/http1/read.py b/mitmproxy/net/http/http1/read.py index d0493da4..ef88fd6c 100644 --- a/mitmproxy/net/http/http1/read.py +++ b/mitmproxy/net/http/http1/read.py @@ -227,7 +227,7 @@ def _get_first_line(rfile): if line == b"\r\n" or line == b"\n": # Possible leftover from previous message line = rfile.readline() - except exceptions.TcpDisconnect: + except (exceptions.TcpDisconnect, exceptions.TlsException): raise exceptions.HttpReadDisconnect("Remote disconnected") if not line: raise exceptions.HttpReadDisconnect("Remote disconnected") -- cgit v1.2.3