forked from CGM_Public/pretix_original
Metrics: Fix Content Type header (#5099)
* Metrics: Fix Content Type header Now it follows the PrometheusText1.0.0 ContentType header specified from their code: https://github.com/prometheus/prometheus/blob/32d306854b77352fec62f5df1268d745b84dfd96/config/config.go#L516-L529 * Update src/pretix/base/views/metrics.py --------- Co-authored-by: Raphael Michel <mail@raphaelmichel.de>
This commit is contained in:
co-authored by
Raphael Michel
parent
caf291630c
commit
4f4903b00e
@@ -80,4 +80,4 @@ def serve_metrics(request):
|
||||
|
||||
content = "\n".join(output) + "\n"
|
||||
|
||||
return HttpResponse(content)
|
||||
return HttpResponse(content, content_type="text/plain;version=1.0.0;escaping=allow-utf-8")
|
||||
|
||||
Reference in New Issue
Block a user