Skip to content

Commit f36eaff

Browse files
committed
Remove unnecessary GitHub HTTP headers from fetchReleasesFromUrl call
1 parent 3727bd8 commit f36eaff

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

dist/setup/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130422,7 +130422,7 @@ class SapMachineDistribution extends base_installer_1.JavaBase {
130422130422
const arch = this.distributionArchitecture();
130423130423
let fetchedReleasesJson = yield this.fetchReleasesFromUrl('https://sapmachine.io/assets/data/sapmachine-releases-all.json');
130424130424
if (!fetchedReleasesJson) {
130425-
fetchedReleasesJson = yield this.fetchReleasesFromUrl('https://sap.github.io/SapMachine/assets/data/sapmachine-releases-all.json', (0, util_1.getGitHubHttpHeaders)());
130425+
fetchedReleasesJson = yield this.fetchReleasesFromUrl('https://sap.github.io/SapMachine/assets/data/sapmachine-releases-all.json');
130426130426
}
130427130427
if (!fetchedReleasesJson) {
130428130428
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://sap.github.io/SapMachine/assets/data/sapmachine-releases-all.json'
7473
);
7574
}
7675

0 commit comments

Comments
 (0)