From ed5a88791fc6467e8394eb763802bbb46dffab35 Mon Sep 17 00:00:00 2001 From: Lars Trieloff Date: Fri, 3 May 2019 13:59:41 +0000 Subject: [PATCH] fix(static): handle more 404 errors with path --- src/openwhisk/static.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openwhisk/static.js b/src/openwhisk/static.js index 2cd7573f7..42b1a6b77 100644 --- a/src/openwhisk/static.js +++ b/src/openwhisk/static.js @@ -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);