From 62176142043efb814608c61edf1e18f91eb7a13f Mon Sep 17 00:00:00 2001 From: strohu Date: Tue, 12 Jul 2016 13:18:58 +0100 Subject: [PATCH] Fix is_ascii check when determining next layer --- mitmproxy/proxy/root_context.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mitmproxy/proxy/root_context.py b/mitmproxy/proxy/root_context.py index 57183c7ea..4d6509d4a 100644 --- a/mitmproxy/proxy/root_context.py +++ b/mitmproxy/proxy/root_context.py @@ -100,7 +100,7 @@ class RootContext(object): is_ascii = ( len(d) == 3 and # expect A-Za-z - all(65 <= x <= 90 and 97 <= x <= 122 for x in six.iterbytes(d)) + all(65 <= x <= 90 or 97 <= x <= 122 for x in six.iterbytes(d)) ) if self.config.rawtcp and not is_ascii: return protocol.RawTCPLayer(top_layer)