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:
Marcus 2022-08-30 17:27:40 +02:00 committed by GitHub
parent 349826e87f
commit 087d3f99f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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}`)