dry out download_resource method