Skip to content

Commit acbfcc4

Browse files
chore: update comment to reflect reason for retry (#609)
1 parent a400793 commit acbfcc4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/index.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,8 @@ export class LinkChecker extends EventEmitter {
288288
}
289289

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

0 commit comments

Comments
 (0)