mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-07-31 10:08:36 -04:00
Ensure that /_synapse/metrics response is UTF-8 encoded
This commit is contained in:
parent
23ab0c68c2
commit
e9c4b0d178
1 changed files with 2 additions and 1 deletions
|
@ -36,4 +36,5 @@ class MetricsResource(Resource):
|
||||||
request.setHeader("Content-Type", "text/plain")
|
request.setHeader("Content-Type", "text/plain")
|
||||||
request.setHeader("Content-Length", str(len(response)))
|
request.setHeader("Content-Length", str(len(response)))
|
||||||
|
|
||||||
return response
|
# Encode as UTF-8 (default)
|
||||||
|
return response.encode()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue