Skip to content

Commit

Permalink
Consider status codes <200
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-el committed Oct 20, 2023
1 parent 1df5e9f commit 3ebc28b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/browser-tracker-core/src/tracker/out_queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 3ebc28b

Please sign in to comment.