Fix missing `Content-Length` on HTTP responses from the metrics handler.