Skip to content

Commit 031452e

Browse files
committed
[fix] closes #473
1 parent 9efa40a commit 031452e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/caronte/passes/ws-incoming.js

+3
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ function XHeaders(req, socket, options) {
7575
function stream(req, socket, options, head) {
7676
common.setupSocket(socket);
7777

78+
if (head && head.length) socket.unshift(head);
79+
80+
7881
var proxyReq = (~['https:', 'wss:'].indexOf(options.target.protocol) ? https : http).request(
7982
common.setupOutgoing(options.ssl || {}, options, req)
8083
);

0 commit comments

Comments
 (0)