Fix the download method when force SSL is on.