fix(HTTP Request Node): Delete response.request only when it's a valid circular references (#8293)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2024-01-10 18:05:19 +01:00
committed by GitHub
parent 8c7f39907f
commit 05c43faa2d
3 changed files with 4 additions and 3 deletions

View File

@@ -1786,7 +1786,8 @@ export class HttpRequestV3 implements INodeType {
// eslint-disable-next-line prefer-const
for (let [index, response] of Object.entries(responses)) {
delete response.request;
if (response?.request?.constructor.name === 'ClientRequest') 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