Skip to content

Commit

Permalink
Merge pull request #89 from aureus1/fix_ios_issue
Browse files Browse the repository at this point in the history
Temporary fix for Issue #83
  • Loading branch information
fperegrinvs committed May 15, 2016
2 parents 21399e0 + a5eab05 commit 7f0d02f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 7f0d02f

Please sign in to comment.