This will fail in cases when there is no content-length header available.