adding content-length header