mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
🐛 Fix bug that HTTP Request node did process data incorrectly
This commit is contained in:
parent
fe91e6d85b
commit
5a8c2c9912
|
@ -522,7 +522,8 @@ export class HttpRequest implements INodeType {
|
|||
}
|
||||
});
|
||||
} else {
|
||||
returnItems.push({ json: { response } });
|
||||
// responseFormat: 'json'
|
||||
returnItems.push({ json: response });
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -531,7 +532,7 @@ export class HttpRequest implements INodeType {
|
|||
return this.prepareOutputData(items);
|
||||
} else {
|
||||
// For all other ones does the output items get replaced
|
||||
return [this.helpers.returnJsonArray(returnItems)];
|
||||
return this.prepareOutputData(returnItems);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue