diff --git a/patroni/api.py b/patroni/api.py index b99f2cb8..02db2900 100644 --- a/patroni/api.py +++ b/patroni/api.py @@ -32,6 +32,7 @@ class RestApiHandler(BaseHTTPRequestHandler): self.send_header('WWW-Authenticate', 'Basic realm=\"Patroni\"') self.send_header('Content-type', 'text/html') self.end_headers() + self.wfile.write(body.encode('utf-8')) def check_auth_header(self): auth_header = self.headers.get('Authorization')