Skip to content

Commit

Permalink
fix: disable default token upgrades (samrum#215)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwoods authored Jan 25, 2023
1 parent fa42937 commit 2f5bb01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Request {
private body: string = "{}";
private contentType: string = "application/json; charset=UTF-8";
private authRequired: boolean = true;
private upgradeRequired: boolean = true;
private upgradeRequired: boolean = false;
private checkRequestStatus: boolean | null = null;
private headers: object = {};

Expand Down
2 changes: 1 addition & 1 deletion test/unit/Request.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ describe("Request", () => {
request.setAuthRequired(false);
expect(request.isAuthRequired()).toBeFalsy();

expect(request.isUpgradeRequired()).toBeTruthy();
expect(request.isUpgradeRequired()).toBeFalsy();
request.setUpgradeRequired(false);
expect(request.isUpgradeRequired()).toBeFalsy();

Expand Down

0 comments on commit 2f5bb01

Please sign in to comment.