Skip to content

Commit

Permalink
fix(static): handle more 404 errors with path
Browse files Browse the repository at this point in the history
  • Loading branch information
trieloff committed May 3, 2019
1 parent 70d01f6 commit ed5a887
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/openwhisk/static.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ function deliverPlain(owner, repo, ref, entry, root, esi = false) {
body: entry,
};
}
if (rqerror.statusCode===404) {
if (rqerror.statusCode === 404 || rqerror.statusCode === '404') {
return error(entry, rqerror.statusCode);
}
return error(rqerror.response.body.toString(), rqerror.statusCode);
Expand Down

0 comments on commit ed5a887

Please sign in to comment.