From a49b21ee2c1c9bfe9f0f5b58e418d366463d8807 Mon Sep 17 00:00:00 2001 From: BreakWa11 Date: Tue, 29 Dec 2015 00:37:36 +0800 Subject: [PATCH] fix "bytes" in "encode_head" 2 --- shadowsocks/obfsplugin/http_simple.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shadowsocks/obfsplugin/http_simple.py b/shadowsocks/obfsplugin/http_simple.py index e1e359b..f0d563f 100644 --- a/shadowsocks/obfsplugin/http_simple.py +++ b/shadowsocks/obfsplugin/http_simple.py @@ -79,7 +79,7 @@ class http_simple(plain.plain): def encode_head(self, buf): ret = b'' for ch in buf: - ret += b'%' + binascii.hexlify(chr(ch)) + ret += b'%' + to_bytes(binascii.hexlify(chr(ch))) return ret def client_encode(self, buf):