fix(HTTP Request Tool Node): Fix the undefined response issue when authentication is enabled (#11343)

Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
This commit is contained in:
Eugene
2024-10-22 16:28:42 +02:00
committed by GitHub
parent cade9b2d91
commit 094ec68d4c
3 changed files with 183 additions and 108 deletions

View File

@@ -109,12 +109,11 @@ const predefinedCredentialRequest = async (ctx: IExecuteFunctions, itemIndex: nu
const additionalOptions = getOAuth2AdditionalParameters(predefinedType);
return async (options: IHttpRequestOptions) => {
return await ctx.helpers.requestWithAuthentication.call(
return await ctx.helpers.httpRequestWithAuthentication.call(
ctx,
predefinedType,
options,
additionalOptions && { oauth2: additionalOptions },
itemIndex,
);
};
};