Skip to content

Commit 8088193

Browse files
fix: remove hardcoded bearer
1 parent 2951748 commit 8088193

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/setup/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54246,7 +54246,7 @@ class BaseDistribution {
5424654246
const dataUrl = `${initialUrl}/index.json`;
5424754247
const headers = {};
5424854248
if (this.nodeInfo.mirrorToken) {
54249-
headers['Authorization'] = `Bearer ${this.nodeInfo.mirrorToken}`;
54249+
headers['Authorization'] = this.nodeInfo.mirrorToken;
5425054250
}
5425154251
const response = await this.httpClient.getJson(dataUrl, headers);
5425254252
return response.result || [];

src/distributions/base-distribution.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export default abstract class BaseDistribution {
103103
const headers = {};
104104

105105
if (this.nodeInfo.mirrorToken) {
106-
headers['Authorization'] = `Bearer ${this.nodeInfo.mirrorToken}`;
106+
headers['Authorization'] = this.nodeInfo.mirrorToken;
107107
}
108108

109109
const response = await this.httpClient.getJson<INodeVersion[]>(

0 commit comments

Comments
 (0)