Remove explicit authorization header from uploadBundledDatabase

This commit is contained in:
Michael B. Gale
2026-10-14 20:03:19 +01:00
parent 047c751d92
commit c1641847bb
2 changed files with 0 additions and 9 deletions

4
lib/entry-points.js generated
View File

@@ -178509,9 +178509,6 @@ async function uploadBundledDatabase(repositoryNwo, language, commitOid, bundled
if (uploadsBaseUrl.endsWith("/")) {
uploadsBaseUrl = uploadsBaseUrl.slice(0, -1);
}
const token = apiDetails.auth?.trim();
const hasToken2 = token !== void 0 && token !== "";
const authorization = hasToken2 ? `token ${token}` : void 0;
const bundledDbReadStream = fs18.createReadStream(bundledDb);
try {
const startTime = performance.now();
@@ -178526,7 +178523,6 @@ async function uploadBundledDatabase(repositoryNwo, language, commitOid, bundled
commit_oid: commitOid,
data: bundledDbReadStream,
headers: {
authorization,
"Content-Type": "application/zip",
"Content-Length": bundledDbSize
},

View File

@@ -282,10 +282,6 @@ export async function uploadBundledDatabase(
uploadsBaseUrl = uploadsBaseUrl.slice(0, -1);
}
const token = apiDetails.auth?.trim();
const hasToken = token !== undefined && token !== "";
const authorization = hasToken ? `token ${token}` : undefined;
const bundledDbReadStream = fs.createReadStream(bundledDb);
try {
const startTime = performance.now();
@@ -300,7 +296,6 @@ export async function uploadBundledDatabase(
commit_oid: commitOid,
data: bundledDbReadStream,
headers: {
authorization,
"Content-Type": "application/zip",
"Content-Length": bundledDbSize,
},