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:
Luca Sorace "Stranck
2025-05-13 18:42:02 +02:00
committed by GitHub
co-authored by Raphael Michel
parent caf291630c
commit 4f4903b00e
+1 -1
View File
@@ -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")