adding content-length header to response