Skip to content

Commit

Permalink
[fix] proxy to http(s)
Browse files Browse the repository at this point in the history
  • Loading branch information
yawnt committed Sep 15, 2013
1 parent 46fe81e commit 3c91ed3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/caronte/passes/ws.js
Expand Up @@ -75,7 +75,7 @@ function XHeaders(req, socket, options) {
function stream(req, socket, options, head) {
common.setupSocket(socket);

var proxyReq = (options.ssl ? https : http).request(
var proxyReq = (~['https:', 'wss:'].indexOf(options.target.protocol) ? https : http).request(
common.setupOutgoing(options.ssl || {}, options, req)
);

Expand Down

0 comments on commit 3c91ed3

Please sign in to comment.