Tests: fixed operator in http.py.

This commit is contained in:
Andrey Zelenkov 2019-11-08 14:04:32 +03:00
parent cc82547782
commit ed3298a3c6

View file

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