From 568fb403bfb5b4b92ec912812b00095047d18850 Mon Sep 17 00:00:00 2001 From: Jean Lauliac Date: Fri, 7 Apr 2017 04:56:31 -0700 Subject: [PATCH] packager: GlobalTransformCache: fix bug in retry logic Reviewed By: bestander Differential Revision: D4850644 fbshipit-source-id: ede9991eaac3c7bfd045f2a9c3e9d0b10d45af0f --- packager/src/lib/GlobalTransformCache.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packager/src/lib/GlobalTransformCache.js b/packager/src/lib/GlobalTransformCache.js index 962c028d7..729b99de6 100644 --- a/packager/src/lib/GlobalTransformCache.js +++ b/packager/src/lib/GlobalTransformCache.js @@ -281,7 +281,7 @@ class URIBasedGlobalTransformCache { return ( error instanceof FetchError && error.type === 'request-timeout' || ( error instanceof FetchFailedError && - error.details.type === 'wrong_http_status' && + error.details.type === 'unhandled_http_status' && (error.details.statusCode === 503 || error.details.statusCode === 502) ) );