Skip to content

Commit d134fee

Browse files
1 parent 2bd444a commit d134fee

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

lib/transports/websocket.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,12 @@ class WS extends Transport {
6767
"ca",
6868
"ciphers",
6969
"rejectUnauthorized",
70-
"localAddress"
70+
"localAddress",
71+
"protocolVersion",
72+
"origin",
73+
"maxPayload",
74+
"family",
75+
"checkServerIdentity"
7176
);
7277

7378
if (this.opts.extraHeaders) {

lib/util.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
module.exports.pick = (obj, ...attr) => {
22
return attr.reduce((acc, k) => {
3-
acc[k] = obj[k];
3+
if (obj.hasOwnProperty(k)) {
4+
acc[k] = obj[k];
5+
}
46
return acc;
57
}, {});
68
};

0 commit comments

Comments
 (0)