diff options
author | Tom Ritter <tom@ritter.vg> | 2020-09-08 00:32:35 -0400 |
---|---|---|
committer | Tom Ritter <tom@ritter.vg> | 2020-09-08 00:32:35 -0400 |
commit | a1d04b6d5d6ff590042016b35b4c727c0c3e3b9e (patch) | |
tree | 1722441d9131552c8b1d970b83f5ca4ca23d19b7 /servers.py | |
parent | 4f91d11b54a5008af7a76043035d0acbbff2392c (diff) |
HTTP Servers need to return bytes
Diffstat (limited to 'servers.py')
-rwxr-xr-x | servers.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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") |