mirror of
https://github.com/peterbraden/node-opencv.git
synced 2025-12-08 19:45:55 +00:00
fix face-proxy
This commit is contained in:
parent
ea7f25962c
commit
a4af50daf7
@ -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'); })
|
||||
|
||||
@ -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": {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user