summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMagnus Hagander2024-03-25 17:40:27 +0000
committerMagnus Hagander2024-04-09 12:18:01 +0000
commita91abc5800236a80a29153145878ba551d01ee5f (patch)
treeccfeaf3aa00f5dbe82eb392ff68cef9884e72a2c
parent88cdd6bc0105f83874f311a26e5949c4cdfc07ee (diff)
Fix cauthreceiver for flask in python3
This has been logging errors since forever -- but still worked in practice :)
-rwxr-xr-xtools/communityauth/sample/pushreceiver/cauth_push_receiver.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/communityauth/sample/pushreceiver/cauth_push_receiver.py b/tools/communityauth/sample/pushreceiver/cauth_push_receiver.py
index 810e8f9f..a0894930 100755
--- a/tools/communityauth/sample/pushreceiver/cauth_push_receiver.py
+++ b/tools/communityauth/sample/pushreceiver/cauth_push_receiver.py
@@ -71,7 +71,7 @@ def application(environ, start_response):
('Content-type', 'text/plain'),
])
return [
- "OK",
+ b"OK",
]
except Exception as e:
print("Error receiving cauth call: {}".format(e), file=sys.stderr)
@@ -81,5 +81,5 @@ def application(environ, start_response):
])
return [
- "An internal server error occurred.\n",
+ b"An internal server error occurred.\n",
]