Skip to content

Commit c164184

Browse files
committed
Remove explicit authorization header from uploadBundledDatabase
1 parent 047c751 commit c164184

2 files changed

Lines changed: 0 additions & 9 deletions

File tree

‎lib/entry-points.js‎

Lines changed: 0 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/database-upload.ts‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -282,10 +282,6 @@ export async function uploadBundledDatabase(
282282
uploadsBaseUrl = uploadsBaseUrl.slice(0, -1);
283283
}
284284

285-
const token = apiDetails.auth?.trim();
286-
const hasToken = token !== undefined && token !== "";
287-
const authorization = hasToken ? `token ${token}` : undefined;
288-
289285
const bundledDbReadStream = fs.createReadStream(bundledDb);
290286
try {
291287
const startTime = performance.now();
@@ -300,7 +296,6 @@ export async function uploadBundledDatabase(
300296
commit_oid: commitOid,
301297
data: bundledDbReadStream,
302298
headers: {
303-
authorization,
304299
"Content-Type": "application/zip",
305300
"Content-Length": bundledDbSize,
306301
},

0 commit comments

Comments
 (0)