From 9b14c019bb311b9b9ab86ff2178a511025c405e2 Mon Sep 17 00:00:00 2001 From: BreakWa11 Date: Wed, 22 Jun 2016 17:11:16 +0800 Subject: [PATCH] obfs http_simple broken in some cases --- shadowsocks/obfsplugin/http_simple.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shadowsocks/obfsplugin/http_simple.py b/shadowsocks/obfsplugin/http_simple.py index 10cde0f..0056867 100644 --- a/shadowsocks/obfsplugin/http_simple.py +++ b/shadowsocks/obfsplugin/http_simple.py @@ -172,7 +172,7 @@ class http_simple(plain.plain): ret_buf = self.get_data_from_http_header(buf) if len(datas) > 1: ret_buf += datas[1] - if len(ret_buf) >= 15: + if len(ret_buf) >= 7: self.has_recv_header = True return (ret_buf, True, False) if len(ret_buf) == 0: @@ -241,7 +241,7 @@ class http_post(http_simple): ret_buf = self.get_data_from_http_header(buf) if len(datas) > 1: ret_buf += datas[1] - if len(ret_buf) >= 15: + if len(ret_buf) >= 7: self.has_recv_header = True return (ret_buf, True, False) if len(ret_buf) == 0: