🐛 Fix issue that binary data got reused

This commit is contained in:
Jan Oberhauser 2020-12-25 22:59:22 +01:00
parent 530294aa45
commit 5c83be18a8

View file

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