[fix] closes #473

This commit is contained in:
yawnt 2013-09-17 10:31:52 +02:00
parent 9efa40a9d2
commit 031452e400

View File

@ -75,6 +75,9 @@ function XHeaders(req, socket, options) {
function stream(req, socket, options, head) {
common.setupSocket(socket);
if (head && head.length) socket.unshift(head);
var proxyReq = (~['https:', 'wss:'].indexOf(options.target.protocol) ? https : http).request(
common.setupOutgoing(options.ssl || {}, options, req)
);