From 987f443b5db4b42a40d284f74220e2164b475754 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sat, 9 Jun 2012 21:45:22 +1200 Subject: [PATCH] Ignore incorrectnesses in traffic if they don't affect us. --- libmproxy/proxy.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/libmproxy/proxy.py b/libmproxy/proxy.py index 41f101d87..f94aade30 100644 --- a/libmproxy/proxy.py +++ b/libmproxy/proxy.py @@ -214,8 +214,6 @@ def parse_request_line(request): major,minor = protocol.split('/')[1].split('.') major = int(major) minor = int(minor) - if major != 1: - raise ProxyError(400, "Unsupported protocol") return method, scheme, host, port, path, minor @@ -459,8 +457,6 @@ class ProxyHandler(SocketServer.StreamRequestHandler): self.wfile.write('Proxy-agent: %s\r\n'%version.NAMEVERSION) self.wfile.write('\r\n') del headers['expect'] - else: - raise ProxyError(417, 'Unmet expect: %s'%expect) if httpminor == 0: client_conn.close = True if "connection" in headers: