1
0
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:
Nick O'Leary 2021-07-22 11:19:25 +01:00
parent 269669ba28
commit 79d9c83a2d
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -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(`
---------------------------------------------------------------------