Fix incorrect deprecation warnings on res.download

fixes #2284