diff options
-rw-r--r-- | test/unit.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/unit.py b/test/unit.py index 3ed7b495..a06f5479 100644 --- a/test/unit.py +++ b/test/unit.py @@ -121,8 +121,9 @@ class TestUnitControl(TestUnit): data = data.encode()
with self._control_sock() as sock:
- req = ('PUT ' + path + (' HTTP/1.1\nHost: localhost\n'
- 'Content-Length: ') + str(len(data)) + '\r\n\r\n').encode() + data
+ req = ('PUT ' + path + ' HTTP/1.1\nHost: localhost\n'
+ + 'Content-Length: ' + str(len(data))
+ + '\r\n\r\n').encode() + data
sock.sendall(req)
|