From a5eab05908e655db652dd3a8f8a67b3badc06a62 Mon Sep 17 00:00:00 2001 From: Andrew Todd Date: Sat, 14 May 2016 18:50:20 -0400 Subject: [PATCH] Temporary fix for Issue #83 --- proxy.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/proxy.py b/proxy.py index 2425685..fd9973b 100755 --- a/proxy.py +++ b/proxy.py @@ -170,6 +170,12 @@ def process(self, data): if self.state == HTTP_PARSER_STATE_HEADERS_COMPLETE and \ ((self.type == HTTP_REQUEST_PARSER and \ not self.method == b"POST") or \ + #aureus - 2016-06-14 - nasty hack fix to get around iOS issue + #remove this when actual fix is found + (self.type == HTTP_REQUEST_PARSER and \ + self.method == b'POST' and \ + self.url.netloc.endswith('qpyou.cn')) or \ + #end nasty hack fix (self.type == HTTP_RESPONSE_PARSER and \ b'content-length' not in self.headers and \ b'transfer-encoding' not in self.headers)) and \