mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -08:00
🐛 Fix issue that binary data got reused
This commit is contained in:
parent
530294aa45
commit
5c83be18a8
|
@ -927,7 +927,7 @@ export class HttpRequest implements INodeType {
|
|||
newItem.binary![dataPropertyName] = await this.helpers.prepareBinaryData(response!, fileName);
|
||||
}
|
||||
|
||||
items[itemIndex] = newItem;
|
||||
returnItems.push(newItem);
|
||||
} else if (responseFormat === 'string') {
|
||||
const dataPropertyName = this.getNodeParameter('dataPropertyName', 0) as string;
|
||||
|
||||
|
@ -980,12 +980,6 @@ export class HttpRequest implements INodeType {
|
|||
}
|
||||
}
|
||||
|
||||
if (responseFormat === 'file') {
|
||||
// For file downloads the files get attached to the existing items
|
||||
return this.prepareOutputData(items);
|
||||
} else {
|
||||
// For all other ones does the output items get replaced
|
||||
return this.prepareOutputData(returnItems);
|
||||
}
|
||||
return this.prepareOutputData(returnItems);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue