We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a400793 commit acbfcc4Copy full SHA for acbfcc4
src/index.ts
@@ -288,7 +288,8 @@ export class LinkChecker extends EventEmitter {
288
}
289
290
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
+ // 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.
293
if (
294
(response === undefined ||
295
response.status < 200 ||
0 commit comments