Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion tests/validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ function validateJson (query, isValidJson) {

async function validateLink (linkUrl) {
try {
const response = await fetch(linkUrl);
const response = await fetch(linkUrl, { method: 'HEAD' });
return response.ok;
} catch (error) {
console.log(JSON.stringify(error, null, 2));
Comment thread
jasonjoh marked this conversation as resolved.
Outdated
return false;
}
}
Expand Down
Loading