From 6fcc0a4243e8c9bdd315c289b0c10db0309de94a Mon Sep 17 00:00:00 2001 From: Jason Conger Date: Wed, 12 Jul 2023 18:58:10 -0500 Subject: [PATCH] fix: remove axios headers --- out/notebooks/spl2/installer.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/out/notebooks/spl2/installer.ts b/out/notebooks/spl2/installer.ts index 1c5f39b..0fa51f1 100644 --- a/out/notebooks/spl2/installer.ts +++ b/out/notebooks/spl2/installer.ts @@ -86,6 +86,7 @@ export async function installMissingSpl2Requirements(context: ExtensionContext, } if (javaLoc && lspVersion) { // Already set up, no need to continue + // TODO: makre sure the jar files are still in the expected location resolve(false); } // Setup local storage directory for downloads and installs @@ -348,8 +349,8 @@ async function downloadWithProgress( responseType: 'stream', transformRequest: (data, headers) => { // Override defaults set elsewhere for splunkd communication - delete headers.common['Authorization']; - delete headers.common['Accept']; + delete headers['Authorization']; + delete headers['Accept']; return data; }, });