add content-length to header