Skip to content

Commit fcb4621

Browse files
committed
Fix fetchReleasesFromUrl to remove unnecessary headers for backup URL
1 parent 65d2f80 commit fcb4621

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

dist/setup/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131522,7 +131522,7 @@ class SapMachineDistribution extends base_installer_1.JavaBase {
131522131522
const arch = this.distributionArchitecture();
131523131523
let fetchedReleasesJson = yield this.fetchReleasesFromUrl('https://sapmachine.io/assets/data/sapmachine-releases-all.json');
131524131524
if (!fetchedReleasesJson) {
131525-
fetchedReleasesJson = yield this.fetchReleasesFromUrl('https://sap.github.io/SapMachine/assets/data/sapmachine-releases-all.json', (0, util_1.getGitHubHttpHeaders)());
131525+
fetchedReleasesJson = yield this.fetchReleasesFromUrl('https://sap.github.io/SapMachine/assets/data/sapmachine-releases-all.json');
131526131526
}
131527131527
if (!fetchedReleasesJson) {
131528131528
throw new Error(`Couldn't fetch SapMachine versions information from both primary and backup urls`);

src/distributions/sapmachine/installer.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@ export class SapMachineDistribution extends JavaBase {
6969

7070
if (!fetchedReleasesJson) {
7171
fetchedReleasesJson = await this.fetchReleasesFromUrl(
72-
'https://sap.github.io/SapMachine/assets/data/sapmachine-releases-all.json',
73-
getGitHubHttpHeaders()
72+
'https://backup.sapmachine.io/assets/data/sapmachine-releases-all.json'
7473
);
7574
}
7675

0 commit comments

Comments
 (0)