From 79d9c83a2df5cce2ec4e87cd66347b91fb6604ab Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Thu, 22 Jul 2021 11:19:25 +0100 Subject: [PATCH] Better detection of broken agent-base function patching --- .../node_modules/@node-red/nodes/core/network/21-httprequest.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/node_modules/@node-red/nodes/core/network/21-httprequest.js b/packages/node_modules/@node-red/nodes/core/network/21-httprequest.js index 902d88a6a..8e55b8158 100644 --- a/packages/node_modules/@node-red/nodes/core/network/21-httprequest.js +++ b/packages/node_modules/@node-red/nodes/core/network/21-httprequest.js @@ -43,7 +43,7 @@ module.exports = function(RED) { const HTTPS_REQUEST = HTTPS_MODULE.request; function checkNodeAgentPatch() { - if (HTTPS_MODULE.request !== HTTPS_REQUEST) { + if (HTTPS_MODULE.request !== HTTPS_REQUEST && HTTPS_MODULE.request.length === 2) { RED.log.warn(` ---------------------------------------------------------------------