fix "bytes" in "encode_head"
This commit is contained in:
parent
e76939981a
commit
81b0597591
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ class http_simple(plain.plain):
|
|||
def encode_head(self, buf):
|
||||
ret = b''
|
||||
for ch in buf:
|
||||
ret += '%' + binascii.hexlify(chr(ch))
|
||||
ret += b'%' + binascii.hexlify(chr(ch))
|
||||
return ret
|
||||
|
||||
def client_encode(self, buf):
|
||||
|
|
Loading…
Add table
Reference in a new issue