Tests: fixed operator in http.py.
This commit is contained in:
parent
cc82547782
commit
ed3298a3c6
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue