mirror of
https://github.com/postgres/pgweb.git
synced 2025-08-06 09:57:57 +00:00
Fix cauthreceiver for flask in python3
This has been logging errors since forever -- but still worked in practice :)
This commit is contained in:
@ -71,7 +71,7 @@ def application(environ, start_response):
|
|||||||
('Content-type', 'text/plain'),
|
('Content-type', 'text/plain'),
|
||||||
])
|
])
|
||||||
return [
|
return [
|
||||||
"OK",
|
b"OK",
|
||||||
]
|
]
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print("Error receiving cauth call: {}".format(e), file=sys.stderr)
|
print("Error receiving cauth call: {}".format(e), file=sys.stderr)
|
||||||
@ -81,5 +81,5 @@ def application(environ, start_response):
|
|||||||
])
|
])
|
||||||
|
|
||||||
return [
|
return [
|
||||||
"An internal server error occurred.\n",
|
b"An internal server error occurred.\n",
|
||||||
]
|
]
|
||||||
|
Reference in New Issue
Block a user