Remove http.servername as got doesn't support

pull/5105/head
Ben Hardill 2025-04-17 15:32:31 +01:00
parent f3b47c5659
commit 0b271f1185
No known key found for this signature in database
GPG Key ID: 74DD076979ABB1E7
1 changed files with 4 additions and 0 deletions

View File

@ -592,6 +592,10 @@ in your Node-RED user directory (${RED.settings.userDir}).
opts.https.alpnProtocols = opts.https.ALPNProtocols
delete opts.https.ALPNProtocols
}
// The got library doesn't support servername at this time
if (opts.https.servername) {
delete opts.https.servername
}
} else {
if (msg.hasOwnProperty('rejectUnauthorized')) {
opts.https = { rejectUnauthorized: msg.rejectUnauthorized };