aboutsummaryrefslogtreecommitdiff
path: root/servers.py
diff options
context:
space:
mode:
authorTom Ritter <tom@ritter.vg>2020-09-08 00:32:35 -0400
committerTom Ritter <tom@ritter.vg>2020-09-08 00:32:35 -0400
commita1d04b6d5d6ff590042016b35b4c727c0c3e3b9e (patch)
tree1722441d9131552c8b1d970b83f5ca4ca23d19b7 /servers.py
parent4f91d11b54a5008af7a76043035d0acbbff2392c (diff)
HTTP Servers need to return bytes
Diffstat (limited to 'servers.py')
-rwxr-xr-xservers.py4
1 files 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")