mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +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)) {
|
||||
optionData = jsonParameters[parameterName] as OptionData;
|
||||
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;
|
||||
|
||||
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
|
||||
requestOptions[optionData.name] = tempValue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user