From 125ee0d01e1d0a643240c7e7c7d87d575e7c3713 Mon Sep 17 00:00:00 2001 From: Viper2k4 Date: Sun, 26 Jun 2016 21:16:29 +0200 Subject: [PATCH] fix swproxy on asia server (finaly) --- proxy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy.py b/proxy.py index f1201e7..17e8612 100755 --- a/proxy.py +++ b/proxy.py @@ -174,7 +174,7 @@ def process(self, data): #remove this when actual fix is found (self.type == HTTP_REQUEST_PARSER and \ self.method == b'POST' and \ - self.url.netloc.endswith('qpyou.cn') and not self.url.path.startswith('/api/')) or \ + (self.url.netloc.endswith('qpyou.cn') or self.url.netloc.endswith('com2us.net')) and not self.url.path.startswith('/api/')) or \ #end nasty hack fix (self.type == HTTP_RESPONSE_PARSER and \ b'content-length' not in self.headers and \