mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 06:34:05 -08:00
🐛 Fix HTTP-Request multipart-form-data/raw bug
This commit is contained in:
parent
996f8065fd
commit
d827749c1e
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue