mirror of
https://github.com/janikvonrotz/awesome-powershell.git
synced 2024-10-01 03:15:42 -04:00
commit
22fdf86aef
@ -14,7 +14,7 @@
|
||||
Write-Host "Requesting url $url"
|
||||
|
||||
try {
|
||||
$request = Invoke-WebRequest -Uri $url
|
||||
$request = Invoke-WebRequest -Uri $url -DisableKeepAlive -UseBasicParsing -Method head
|
||||
} catch {
|
||||
Write-Warning -Message "Found dead url $url in $fileName"
|
||||
$unreachable += $url
|
||||
@ -33,4 +33,4 @@ if ($DeadLinks) {
|
||||
Write-Host -Object $DeadLink -ForegroundColor Red
|
||||
}
|
||||
exit 1
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user