fixed issue with response code and headers

This commit is contained in:
Dom Scandinaro
2015-12-16 09:42:48 -06:00
parent 596ead14e6
commit 4ee7a6738f

View File

@@ -132,6 +132,9 @@ function maybe_bounce(req, res, sock, head) {
};
var client_req = http.request(opt, function(client_res) {
// write response code and headers
res.writeHead(client_res.statusCode, client_res.headers);
client_res.pipe(res);
on_finished(client_res, function(err) {
done();