Skip to content

Commit

Permalink
Better detection of broken agent-base function patching
Browse files Browse the repository at this point in the history
  • Loading branch information
knolleary committed Jul 22, 2021
1 parent 269669b commit 79d9c83
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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(`
---------------------------------------------------------------------
Expand Down

0 comments on commit 79d9c83

Please sign in to comment.