Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 79d9c83

Browse files
committed
Better detection of broken agent-base function patching
1 parent 269669b commit 79d9c83

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/node_modules/@node-red/nodes/core/network/21-httprequest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ module.exports = function(RED) {
4343
const HTTPS_REQUEST = HTTPS_MODULE.request;
4444

4545
function checkNodeAgentPatch() {
46-
if (HTTPS_MODULE.request !== HTTPS_REQUEST) {
46+
if (HTTPS_MODULE.request !== HTTPS_REQUEST && HTTPS_MODULE.request.length === 2) {
4747
RED.log.warn(`
4848
4949
---------------------------------------------------------------------

0 commit comments

Comments
 (0)