Skip to content

Commit

Permalink
Fix handling of cached responses
Browse files Browse the repository at this point in the history
  • Loading branch information
aredridel committed Nov 1, 2017
1 parent 094a275 commit 96cc55d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function buildArchPackage(os, cpu, version, pre) {

debug("Fetching", url);
return fetch(url).then(function(res) {
if (res.status != 200) {
if (res.status != 200 && res.status != 304) {
throw new VError("not ok: fetching %j got status code %s", url, res.status);
}

Expand Down

0 comments on commit 96cc55d

Please sign in to comment.