Add content length to headers