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