mirror of
				https://github.com/ScoopInstaller/Scoop.git
				synced 2025-10-30 22:28:00 +00:00 
			
		
		
		
	Possible temporary fix for #1334, disable download progress if content length has not been set (-1)
This commit is contained in:
		| @@ -161,7 +161,7 @@ function dl($url, $to, $cookies, $progress) { | ||||
|     $wres = $wreq.getresponse() | ||||
|     $total = $wres.ContentLength | ||||
|  | ||||
|     if ($progress) { | ||||
|     if ($progress -and ($total -gt 0)) { | ||||
|         [console]::CursorVisible = $false | ||||
|         function dl_onProgress($read) { | ||||
|             dl_progress $read $total $url | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Luke Sampson
					Luke Sampson