diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-11-03 20:00:44 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-11-03 20:00:44 -0500 |
| commit | 6a1456f06024b646647db8512b6b1288aaba783f (patch) | |
| tree | 03e34bfb3d27b705d0dc92eb83ae7b57d547617e /proxy/index.js | |
| parent | 2bb57e067e196b3623eb86528517addd52b67943 (diff) | |
cart working
Diffstat (limited to 'proxy/index.js')
| -rw-r--r-- | proxy/index.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/proxy/index.js b/proxy/index.js index 85a4981c..45d38f1d 100644 --- a/proxy/index.js +++ b/proxy/index.js @@ -29,17 +29,17 @@ server.on('request', function (req, res){ options.path = req.url req.pause() - + console.log(options) var connector = https.request(options, function(server_res) { console.log(">> GOT", server_res.statusCode) server_res.pause() res.writeHeader(server_res.statusCode, server_res.headers) - // server_res.on("data", function(s){ console.log("<<", s.toString()) }) + server_res.on("data", function(s){ console.log("<<", s.toString()) }) server_res.pipe(res) server_res.resume() }) - // req.on("data", function(s){ console.log(">>", s.toString()) }) + req.on("data", function(s){ console.log(">>", s.toString()) }) req.on("error", function(s){ console.log("/!\\ ERROR /!\\"); console.log(s) }) req.pipe(connector) req.resume() |
