Add missing body to authenticate request

This commit is contained in:
Alexander Kukushkin
2015-09-10 16:29:17 +02:00
parent d830e8de7c
commit 3d7c6118de
+1
View File
@@ -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')