mirror of
https://github.com/bitinflow/server.git
synced 2026-03-13 13:35:53 +00:00
Merge pull request #41 from scandinaro/master
fixed issue with response code and headers
This commit is contained in:
@@ -132,6 +132,9 @@ function maybe_bounce(req, res, sock, head) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
var client_req = http.request(opt, function(client_res) {
|
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);
|
client_res.pipe(res);
|
||||||
on_finished(client_res, function(err) {
|
on_finished(client_res, function(err) {
|
||||||
done();
|
done();
|
||||||
|
|||||||
Reference in New Issue
Block a user