Add proper content type header to stats endpoint