Skip to content

Commit

Permalink
revert: Revert "fix: won't reparse the response (#59)" (#60)
Browse files Browse the repository at this point in the history
This reverts commit 9b2e3d0.

Signed-off-by: Zxilly <zhouxinyu1001@gmail.com>
  • Loading branch information
Zxilly authored Apr 28, 2021
1 parent 9b2e3d0 commit 720337b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Authorizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export class Authorizer {
}
this.permission.load(permission);
}

public async initEnforcer(s: string): Promise<void> {
const obj = JSON.parse(s);
if (!('m' in obj)) {
Expand All @@ -107,7 +107,6 @@ export class Authorizer {
}
const resp = await axios.get<BaseResponse>(`${this.endpoint}?subject=${this.user}`, {
headers: this.requestHeaders,
transformResponse: res => res,
});
return resp.data.data;
}
Expand Down

0 comments on commit 720337b

Please # to comment.