mirror of https://github.com/node-red/node-red.git
Merge f3b47c5659
into 1eb9aa0eed
commit
85dfbd2595
|
@ -586,6 +586,12 @@ in your Node-RED user directory (${RED.settings.userDir}).
|
|||
opts.https.certificate = opts.https.cert;
|
||||
delete opts.https.cert;
|
||||
}
|
||||
// The got library uses a different case for some https properties compared to the
|
||||
// standard node tls options object.
|
||||
if (opts.https.ALPNProtocols) {
|
||||
opts.https.alpnProtocols = opts.https.ALPNProtocols
|
||||
delete opts.https.ALPNProtocols
|
||||
}
|
||||
} else {
|
||||
if (msg.hasOwnProperty('rejectUnauthorized')) {
|
||||
opts.https = { rejectUnauthorized: msg.rejectUnauthorized };
|
||||
|
|
Loading…
Reference in New Issue