mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-09-07 22:52:01 +00:00
Ensure that /_synapse/metrics response is UTF-8 encoded
This commit is contained in:
parent
23ab0c68c2
commit
e9c4b0d178
@ -36,4 +36,5 @@ class MetricsResource(Resource):
|
||||
request.setHeader("Content-Type", "text/plain")
|
||||
request.setHeader("Content-Length", str(len(response)))
|
||||
|
||||
return response
|
||||
# Encode as UTF-8 (default)
|
||||
return response.encode()
|
||||
|
Loading…
Reference in New Issue
Block a user