aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2017-02-17 22:42:40 +0100
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2017-02-17 22:45:31 +0100
commitc04d14e53c9dee6cc36f840ee5d20deb09d8933b (patch)
tree2617ff12fadfb11d82f434883d3e1fc830078c55
parent337b1c9399e525a23dc188ef5df1667f109b108e (diff)
downloadmitmproxy-c04d14e53c9dee6cc36f840ee5d20deb09d8933b.tar.gz
mitmproxy-c04d14e53c9dee6cc36f840ee5d20deb09d8933b.tar.bz2
mitmproxy-c04d14e53c9dee6cc36f840ee5d20deb09d8933b.zip
fix #1916
-rw-r--r--mitmproxy/net/http/http1/read.py2
1 files changed, 1 insertions, 1 deletions
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")