Skip to content

Commit

Permalink
fix(core): make digest auth work with query params
Browse files Browse the repository at this point in the history
* fixed NodeExecutionFunction digestAuthAxiosConfig using url search params

* fixed linting error because auto format removed tabs
  • Loading branch information
maspio authored Aug 30, 2022
1 parent 349826e commit 087d3f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/src/NodeExecuteFunctions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`)
Expand Down

0 comments on commit 087d3f9

Please sign in to comment.