From 3d7c6118de7fc12fbb01255bb6c755e326a025b6 Mon Sep 17 00:00:00 2001 From: Alexander Kukushkin Date: Thu, 10 Sep 2015 16:29:17 +0200 Subject: [PATCH] Add missing body to authenticate request --- patroni/api.py | 1 + 1 file changed, 1 insertion(+) 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')