Making sure that the content-length header is set