Skip to content

Commit

Permalink
chore: update comment to reflect reason for retry (#609)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeckwith committed Jul 1, 2024
1 parent a400793 commit acbfcc4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,8 @@ export class LinkChecker extends EventEmitter {
}

try {
// Some sites don't respond to a stream response type correctly, especially with a HEAD. Try a GET with a text response type
// Some sites don't respond well to HEAD requests, even if they don't return a 405.
// This is a last gasp effort to see if the link is valid.
if (
(response === undefined ||
response.status < 200 ||
Expand Down

0 comments on commit acbfcc4

Please sign in to comment.