Allow to check result of download() for bad content

Signed-off-by: Kai Blin <kai@samba.org>