From a1d04b6d5d6ff590042016b35b4c727c0c3e3b9e Mon Sep 17 00:00:00 2001 From: Tom Ritter Date: Tue, 8 Sep 2020 00:32:35 -0400 Subject: HTTP Servers need to return bytes --- servers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/servers.py b/servers.py index 259127a..1529e0d 100755 --- a/servers.py +++ b/servers.py @@ -22,7 +22,7 @@ class StatusSite(resource.Resource): s = "JobProblem" request.setResponseCode(200) - return s + return s.encode("utf-8") class PingSite(resource.Resource): isLeaf = True @@ -42,5 +42,5 @@ class PingSite(resource.Resource): self.statusTracker.markEmailStatus(emailStatus) request.setResponseCode(200) - return "OK" + return "OK".encode("utf-8") -- cgit v1.2.3