mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Better detection of broken agent-base function patching
This commit is contained in:
parent
269669ba28
commit
79d9c83a2d
@ -43,7 +43,7 @@ module.exports = function(RED) {
|
|||||||
const HTTPS_REQUEST = HTTPS_MODULE.request;
|
const HTTPS_REQUEST = HTTPS_MODULE.request;
|
||||||
|
|
||||||
function checkNodeAgentPatch() {
|
function checkNodeAgentPatch() {
|
||||||
if (HTTPS_MODULE.request !== HTTPS_REQUEST) {
|
if (HTTPS_MODULE.request !== HTTPS_REQUEST && HTTPS_MODULE.request.length === 2) {
|
||||||
RED.log.warn(`
|
RED.log.warn(`
|
||||||
|
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user