changed how to specify content-length header