diff --git a/test/unit/http.py b/test/unit/http.py index 82a6bd6a..1a68ca3b 100644 --- a/test/unit/http.py +++ b/test/unit/http.py @@ -63,7 +63,7 @@ class TestHTTP(TestUnit): if 'raw' not in kwargs: req = ' '.join([start_str, url, http]) + crlf - if body is not b'': + if body != b'': if isinstance(body, str): body = body.encode()