Skip to content

Commit

Permalink
Fix URLSearchParams append instead of set
Browse files Browse the repository at this point in the history
  • Loading branch information
cspeer committed Mar 22, 2023
1 parent fea3e21 commit f485cd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const generateSignatureToken = (
var xhr = new XMLHttpRequest();
xhr.timeout = 60000;
var urlObj = new URL(authenticationEndpoint);
urlObj.searchParams.set("t", Math.random().toString());
urlObj.searchParams.append("t", Math.random().toString());
xhr.open('GET', urlObj.toString());
xhr.ontimeout = function (e) {
return reject(errorMessages.AUTH_ENDPOINT_TIMEOUT);
Expand Down Expand Up @@ -128,4 +128,4 @@ export const uploadFile = (
};
uploadFileXHR.send(formData);
});
}
}

0 comments on commit f485cd7

Please sign in to comment.