From d796bd56c33fbd59a90e240eb66c1664bf628429 Mon Sep 17 00:00:00 2001 From: Emil Madsen Date: Tue, 18 Feb 2020 18:54:53 +0100 Subject: [PATCH] Utilize entire header instead of unwrapping half Signed-off-by: Emil Madsen --- prometheus_client/exposition.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prometheus_client/exposition.py b/prometheus_client/exposition.py index 68387860..634066f7 100644 --- a/prometheus_client/exposition.py +++ b/prometheus_client/exposition.py @@ -169,7 +169,7 @@ def do_GET(self): status, header, output = _bake_output(registry, accept_header, params) # Return output self.send_response(int(status.split(' ')[0])) - self.send_header('Content-Type', header[1]) + self.send_header(*header) self.end_headers() self.wfile.write(output)