Skip to content

Commit

Permalink
fix: add HEAD check before asset downloads
Browse files Browse the repository at this point in the history
  • Loading branch information
lightpohl committed May 10, 2020
1 parent fc6cc76 commit 2b6edf2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bin/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,12 @@ let download = async ({ url, outputPath, key, archive }) => {
return;
}

await got(url, {
timeout: 5000,
method: "HEAD",
responseType: "json",
});

try {
await pipeline(
got
Expand Down

0 comments on commit 2b6edf2

Please sign in to comment.