🐛 Fix HTTP-Request multipart-form-data/raw bug

This commit is contained in:
Jan Oberhauser 2020-10-16 16:05:32 +02:00
parent 996f8065fd
commit d827749c1e

View file

@ -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;