From 3ebc28b814c356622fb5006452d9ca169be539e5 Mon Sep 17 00:00:00 2001 From: Greg Leonard <45019882+greg-el@users.noreply.github.com> Date: Fri, 20 Oct 2023 16:35:55 +0100 Subject: [PATCH] Consider status codes <200 --- libraries/browser-tracker-core/src/tracker/out_queue.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/browser-tracker-core/src/tracker/out_queue.ts b/libraries/browser-tracker-core/src/tracker/out_queue.ts index 92e3ad968..eb5d8894d 100644 --- a/libraries/browser-tracker-core/src/tracker/out_queue.ts +++ b/libraries/browser-tracker-core/src/tracker/out_queue.ts @@ -371,9 +371,9 @@ export function OutQueueManager( }; xhr.onreadystatechange = function () { - if (xhr.readyState === 4 && xhr.status >= 200) { + if (xhr.readyState === 4) { clearTimeout(xhrTimeout); - if (xhr.status < 300) { + if (xhr.status >= 200 && xhr.status < 300) { onPostSuccess(numberToSend); } else { if (!shouldRetryForStatusCode(xhr.status)) {