Commit 3cef3d6b authored by Arnaud Fontaine's avatar Arnaud Fontaine

py3: send() parameter must be bytes(), not str().

  File "product/TimerService/timerserver/TimerServer.py", line 71, in run
    s.send('GET / HTTP/1.1\r\n\r\n')
TypeError: a bytes-like object is required, not 'str'
parent 192c2000
......@@ -83,7 +83,7 @@ class TimerServer(threading.Thread):
except socket.error:
time.sleep(5)
continue
s.send('GET / HTTP/1.1\r\n\r\n')
s.send(b'GET / HTTP/1.1\r\n\r\n')
s.recv(4096) # blocks until a response is received
break
s.close()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment