Skip to content

Commit

Permalink
🐛 Fix issue with PDF files returned as dead links
Browse files Browse the repository at this point in the history
Change so Invoke-Webrequest does not use -Method Head
  • Loading branch information
hjorslev committed Jun 26, 2020
1 parent 18c3314 commit 119cf14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DeadLinksAnalyzer.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 119cf14

Please sign in to comment.