The download file url is changed to http, suppose the webpage will be redirected to download a excel file after I click "Export to Spreadsheet". However, the download file url is changed at that time and therefore, users need to type the "s" back into the download url.
Only this function changes https to http, others don't.