Skip to content

Commit

Permalink
fix swproxy on asia server (finaly)
Browse files Browse the repository at this point in the history
  • Loading branch information
Viper2k4 authored Jun 26, 2016
1 parent 540ee20 commit 125ee0d
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 125ee0d

Please sign in to comment.