From 8e73f50ff5f173e46b51aef2fc60e228c28290fd Mon Sep 17 00:00:00 2001 From: BreakWa11 Date: Tue, 19 Jul 2016 15:23:35 +0800 Subject: [PATCH] fix http_post & http_simple redirect --- shadowsocks/obfsplugin/http_simple.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/shadowsocks/obfsplugin/http_simple.py b/shadowsocks/obfsplugin/http_simple.py index 0056867..6783a32 100644 --- a/shadowsocks/obfsplugin/http_simple.py +++ b/shadowsocks/obfsplugin/http_simple.py @@ -175,9 +175,7 @@ class http_simple(plain.plain): if len(ret_buf) >= 7: self.has_recv_header = True return (ret_buf, True, False) - if len(ret_buf) == 0: - return self.not_match_return(buf) - return (b'', True, False) + return self.not_match_return(buf) else: return (b'', True, False) @@ -244,9 +242,7 @@ class http_post(http_simple): if len(ret_buf) >= 7: self.has_recv_header = True return (ret_buf, True, False) - if len(ret_buf) == 0: - return self.not_match_return(buf) - return (b'', True, False) + return self.not_match_return(buf) else: return (b'', True, False)