use content length to determine read size