We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
HEAD
1 parent c8f64ae commit 135614eCopy full SHA for 135614e
1 file changed
tests/validator.js
@@ -20,9 +20,10 @@ function validateJson (query, isValidJson) {
20
21
async function validateLink (linkUrl) {
22
try {
23
- const response = await fetch(linkUrl);
+ const response = await fetch(linkUrl, { method: 'HEAD' });
24
return response.ok;
25
} catch (error) {
26
+ console.log(JSON.stringify(error, null, 2));
27
return false;
28
}
29
0 commit comments