🐛 Fix bug that HTTP Request node did process JSON incorrectly

This commit is contained in:
Jan Oberhauser 2019-09-04 22:02:10 +02:00
parent 904ecc31e3
commit 699cd25615

View file

@ -513,7 +513,7 @@ export class HttpRequest implements INodeType {
const fileName = (url).split('/').pop(); const fileName = (url).split('/').pop();
items[itemIndex].binary![dataPropertyName] = await this.helpers.prepareBinaryData(response, fileName); items[itemIndex].binary![dataPropertyName] = await this.helpers.prepareBinaryData(response, fileName);
} else if (responseFormat === 'json') { } else if (responseFormat === 'string') {
const dataPropertyName = this.getNodeParameter('dataPropertyName', 0) as string; const dataPropertyName = this.getNodeParameter('dataPropertyName', 0) as string;
returnItems.push({ returnItems.push({