mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
🐛 Fix HTTP-Request multipart-form-data/raw bug
This commit is contained in:
@@ -661,10 +661,6 @@ export class HttpRequest implements INodeType {
|
|||||||
for (const parameterName of Object.keys(jsonParameters)) {
|
for (const parameterName of Object.keys(jsonParameters)) {
|
||||||
optionData = jsonParameters[parameterName] as OptionData;
|
optionData = jsonParameters[parameterName] as OptionData;
|
||||||
const tempValue = this.getNodeParameter(parameterName, itemIndex, '') as string | object;
|
const tempValue = this.getNodeParameter(parameterName, itemIndex, '') as string | object;
|
||||||
if (tempValue === '') {
|
|
||||||
// Paramter is empty so skip it
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
const sendBinaryData = this.getNodeParameter('sendBinaryData', itemIndex, false) as boolean;
|
const sendBinaryData = this.getNodeParameter('sendBinaryData', itemIndex, false) as boolean;
|
||||||
|
|
||||||
if (optionData.name === 'body' && parametersAreJson === true) {
|
if (optionData.name === 'body' && parametersAreJson === true) {
|
||||||
@@ -729,6 +725,11 @@ export class HttpRequest implements INodeType {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (tempValue === '') {
|
||||||
|
// Paramter is empty so skip it
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
requestOptions[optionData.name] = tempValue;
|
requestOptions[optionData.name] = tempValue;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user