Merge pull request #114 from ddneves/patch-1

Performance optimization
This commit is contained in:
Janik Vonrotz 2020-06-16 17:41:23 +02:00 committed by GitHub
commit 22fdf86aef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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