We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46fe81e commit 3c91ed3Copy full SHA for 3c91ed3
lib/caronte/passes/ws.js
@@ -75,7 +75,7 @@ function XHeaders(req, socket, options) {
75
function stream(req, socket, options, head) {
76
common.setupSocket(socket);
77
78
- var proxyReq = (options.ssl ? https : http).request(
+ var proxyReq = (~['https:', 'wss:'].indexOf(options.target.protocol) ? https : http).request(
79
common.setupOutgoing(options.ssl || {}, options, req)
80
);
81
0 commit comments