fix face-proxy

This commit is contained in:
Peter Braden 2014-10-15 20:17:31 +02:00
parent ea7f25962c
commit a4af50daf7
2 changed files with 7 additions and 3 deletions

View File

@ -3,7 +3,7 @@ var http = require('http'),
request = require('request'),
cv = require('../lib/opencv');
http.createServer(function(req, resp){
var server = http.createServer(function(req, resp){
var url = req.url.slice(1);
request({uri:url, encoding:'binary'}, function(err, r, body){
if (err) return resp.end(err.stack);
@ -27,4 +27,7 @@ http.createServer(function(req, resp){
});
});
}).listen(3000, function(){ console.log('Listening on http://localhost:3000'); })
})
//server.listen(3000, function(){ console.log('Listening on http://localhost:3000'); })

View File

@ -9,7 +9,8 @@
"version": "1.0.0",
"devDependencies": {
"tape": "^3.0.0",
"glob": "^4.0.6"
"glob": "^4.0.6",
"request": "^2.45.0"
},
"license": "MIT",
"scripts": {