Commit 5fc2104c authored by Arnaud Fontaine's avatar Arnaud Fontaine

zope4py3: send() 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 9bcfef4a
......@@ -68,7 +68,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