Browse Source

fix "bytes" in "encode_head" 2

dev
BreakWa11 9 years ago
parent
commit
a49b21ee2c
  1. 2
      shadowsocks/obfsplugin/http_simple.py

2
shadowsocks/obfsplugin/http_simple.py

@ -79,7 +79,7 @@ class http_simple(plain.plain):
def encode_head(self, buf): def encode_head(self, buf):
ret = b'' ret = b''
for ch in buf: for ch in buf:
ret += b'%' + binascii.hexlify(chr(ch)) ret += b'%' + to_bytes(binascii.hexlify(chr(ch)))
return ret return ret
def client_encode(self, buf): def client_encode(self, buf):

Loading…
Cancel
Save