summaryrefslogtreecommitdiff
path: root/proxy/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'proxy/index.js')
-rw-r--r--proxy/index.js6
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()