Tests: fixed operator in http.py.
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user