mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-09 22:24:05 -08:00
fix(HTTP Request Node): Do not create circular references in HTTP request node output (#8030)
## Summary Remove unused `response.request` circular reference in http response objects ## Related tickets [PAY-1119](https://linear.app/n8n/issue/PAY-1119) ## Review / Merge checklist - [x] PR title and summary are descriptive.
This commit is contained in:
parent
67bd8ad698
commit
5b7ea16d9a
|
@ -993,6 +993,7 @@ export class HttpRequestV1 implements INodeType {
|
|||
}
|
||||
|
||||
response = response.value;
|
||||
delete response.request;
|
||||
|
||||
const options = this.getNodeParameter('options', itemIndex, {});
|
||||
|
||||
|
|
|
@ -1046,6 +1046,7 @@ export class HttpRequestV2 implements INodeType {
|
|||
}
|
||||
|
||||
response = response.value;
|
||||
delete response.request;
|
||||
|
||||
const options = this.getNodeParameter('options', itemIndex, {});
|
||||
|
||||
|
|
|
@ -1767,6 +1767,7 @@ export class HttpRequestV3 implements INodeType {
|
|||
|
||||
// eslint-disable-next-line prefer-const
|
||||
for (let [index, response] of Object.entries(responses)) {
|
||||
delete response.request;
|
||||
if (this.getMode() === 'manual' && index === '0') {
|
||||
// For manual executions save the first response in the context
|
||||
// so that we can use it in the frontend and so make it easier for
|
||||
|
|
Loading…
Reference in a new issue