diff options
Diffstat (limited to 'proxy/index.js')
| -rw-r--r-- | proxy/index.js | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/proxy/index.js b/proxy/index.js index 14d5dc63..d646e5fb 100644 --- a/proxy/index.js +++ b/proxy/index.js @@ -45,12 +45,11 @@ server.on('request', function (req, res){ res.writeHeader(server_res.statusCode, server_res.headers) server_res.pipe(res) - if (req.method == 'GET') { - cache[req.url] = '' - server_res.on('data', function(s){ - cache[req.url] += s.toString() - }) - } + cache[req.url] = '' + server_res.on('data', function(s){ + cache[req.url] += s.toString() + }) + if (DEBUG) { server_res.on('data', function(s){ console.log( s.toString() ) |
