node-red-contrib-unifi-ultimate 1.1.5 → 1.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -907,10 +907,7 @@ module.exports = function(RED) {
|
|
|
907
907
|
let ws;
|
|
908
908
|
try {
|
|
909
909
|
ws = new WebSocket(node.buildUnofficialNetworkWebSocketUrl(), {
|
|
910
|
-
headers:
|
|
911
|
-
[API_KEY_HEADER]: apiKey,
|
|
912
|
-
Accept: "application/json"
|
|
913
|
-
},
|
|
910
|
+
headers: buildRequestHeaders(apiKey),
|
|
914
911
|
rejectUnauthorized: node.rejectUnauthorized
|
|
915
912
|
});
|
|
916
913
|
} catch (error) {
|
package/package.json
CHANGED