fix the download progress bar by adding the Content-Length header to the HTTP request