Body should be bytes.

This commit is contained in:
Itamar Turner-Trauring 2021-03-18 13:29:56 -04:00
parent f9d0116283
commit e091d4d0aa
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ class BadResponse(object):
return ""
def do_http(method, url, body=""):
def do_http(method, url, body=b""):
if isinstance(body, bytes):
body = BytesIO(body)
elif isinstance(body, six.text_type):