From acbfcc4dbd632d10c84c50513df5a28b2068e5a0 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Mon, 1 Jul 2024 12:48:30 -0400 Subject: [PATCH] chore: update comment to reflect reason for retry (#609) --- src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index f9c6472..bea579a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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 ||