From 087d3f99f1f5c38db763686c10c6181e20c08307 Mon Sep 17 00:00:00 2001 From: Marcus <56945030+maspio@users.noreply.github.com> Date: Tue, 30 Aug 2022 17:27:40 +0200 Subject: [PATCH] fix(core): make digest auth work with query params * fixed NodeExecutionFunction digestAuthAxiosConfig using url search params * fixed linting error because auto format removed tabs --- packages/core/src/NodeExecuteFunctions.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/core/src/NodeExecuteFunctions.ts b/packages/core/src/NodeExecuteFunctions.ts index 11c6d89438ae5..c9645b5939c88 100644 --- a/packages/core/src/NodeExecuteFunctions.ts +++ b/packages/core/src/NodeExecuteFunctions.ts @@ -512,7 +512,8 @@ function digestAuthAxiosConfig( .createHash('md5') .update(`${auth?.username as string}:${realm}:${auth?.password as string}`) .digest('hex'); - const path = new url.URL(axiosConfig.url!).pathname; + const urlURL = new url.URL(axios.getUri(axiosConfig)); + const path = urlURL.pathname + urlURL.search; const ha2 = crypto .createHash('md5') .update(`${axiosConfig.method ?? 'GET'}:${path}`)