Skip to content

Commit

Permalink
Merge pull request #121 from Viper2k4/patch-2
Browse files Browse the repository at this point in the history
fix swproxy on asia server (finaly)
  • Loading branch information
fperegrinvs authored Jul 1, 2016
2 parents 540ee20 + 125ee0d commit 65e9480
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 65e9480

Please sign in to comment.