🐛 Fix issue with PDF files returned as dead links

Change so Invoke-Webrequest does not use -Method Head
This commit is contained in:
Frederik Hjorslev Poulsen 2020-06-27 00:00:43 +02:00
parent 18c3314833
commit 119cf14851
No known key found for this signature in database
GPG Key ID: 23DDBC920BDE66CF

View File

@ -14,7 +14,7 @@
Write-Host "Requesting url $url"
try {
$request = Invoke-WebRequest -Uri $url -DisableKeepAlive -UseBasicParsing -Method head
$request = Invoke-WebRequest -Uri $url -DisableKeepAlive -UseBasicParsing
} catch {
Write-Warning -Message "Found dead url $url in $fileName"
$unreachable += $url