mirror of
https://github.com/pretix/pretix.git
synced 2026-05-03 14:54:04 +00:00
Metrics: Fix Content Type header (#5099)
* Metrics: Fix Content Type header
Now it follows the PrometheusText1.0.0 ContentType header specified from their code: 32d306854b/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:
committed by
GitHub
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