no bug - fix download_file in cases where we don't get content-length. r=catlee