Ensure that /_synapse/metrics response is UTF-8 encoded

This commit is contained in:
Paul "LeoNerd" Evans 2015-03-04 18:15:07 +00:00
parent 23ab0c68c2
commit e9c4b0d178
1 changed files with 2 additions and 1 deletions

View File

@ -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()