mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-02 07:01:30 -08:00
fix(core): make digest auth work with query params
* fixed NodeExecutionFunction digestAuthAxiosConfig using url search params * fixed linting error because auto format removed tabs
This commit is contained in:
parent
349826e87f
commit
087d3f99f1
|
@ -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}`)
|
||||
|
|
Loading…
Reference in a new issue