mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-13 16:14:07 -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)) {
|
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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue