contentLength should be an integer