Change type of contentLength to be an object