🐛 Fix bug that HTTP Request node did process data incorrectly

This commit is contained in:
Jan Oberhauser 2019-09-04 22:41:17 +02:00
parent fe91e6d85b
commit 5a8c2c9912

View file

@ -522,7 +522,8 @@ export class HttpRequest implements INodeType {
} }
}); });
} else { } else {
returnItems.push({ json: { response } }); // responseFormat: 'json'
returnItems.push({ json: response });
} }
} }
@ -531,7 +532,7 @@ export class HttpRequest implements INodeType {
return this.prepareOutputData(items); return this.prepareOutputData(items);
} else { } else {
// For all other ones does the output items get replaced // For all other ones does the output items get replaced
return [this.helpers.returnJsonArray(returnItems)]; return this.prepareOutputData(returnItems);
} }
} }
} }