fix "bytes" in "encode_head" 2

This commit is contained in:
BreakWa11 2015-12-29 00:37:36 +08:00
parent 81b0597591
commit a49b21ee2c

View file

@ -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):