Skip to content

Commit

Permalink
Utilize entire header instead of unwrapping half
Browse files Browse the repository at this point in the history
Signed-off-by: Emil Madsen <sovende@gmail.com>
  • Loading branch information
Skeen committed Feb 18, 2020
1 parent 050bb5c commit d796bd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prometheus_client/exposition.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit d796bd5

Please sign in to comment.