Skip to content

Commit 135614e

Browse files
committed
Update to use HEAD
Also added `console.log` line to help debug any future errors Fixes #1248
1 parent c8f64ae commit 135614e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/validator.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@ function validateJson (query, isValidJson) {
2020

2121
async function validateLink (linkUrl) {
2222
try {
23-
const response = await fetch(linkUrl);
23+
const response = await fetch(linkUrl, { method: 'HEAD' });
2424
return response.ok;
2525
} catch (error) {
26+
console.log(JSON.stringify(error, null, 2));
2627
return false;
2728
}
2829
}

0 commit comments

Comments
 (0)