Fix the capitisation for ALPN settings in http-request

part of  node-red/node-red#5104
pull/5105/head
Ben Hardill 2025-04-13 08:43:50 +01:00
parent 23c44db30d
commit 261495fc2d
No known key found for this signature in database
GPG Key ID: 74DD076979ABB1E7
1 changed files with 4 additions and 0 deletions

View File

@ -586,6 +586,10 @@ in your Node-RED user directory (${RED.settings.userDir}).
opts.https.certificate = opts.https.cert;
delete opts.https.cert;
}
if (opts.https.ALPNProtocols) {
opts.https.alpnProtocols = opts.https.ALPNProtocols
delete opts.https.ALPNProtocols
}
} else {
if (msg.hasOwnProperty('rejectUnauthorized')) {
opts.https = { rejectUnauthorized: msg.rejectUnauthorized };