add Content-length header