diff --git a/src/allmydata/scripts/common_http.py b/src/allmydata/scripts/common_http.py index 20159b020..a53f6baa8 100644 --- a/src/allmydata/scripts/common_http.py +++ b/src/allmydata/scripts/common_http.py @@ -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):