diff --git a/server.js b/server.js index 77ee2f8..095a10f 100644 --- a/server.js +++ b/server.js @@ -35,7 +35,7 @@ function callLoadInitializeData(req, res, resdata){ // The whole response has been received. Print out the result. resp.on('end', () => { - if(data !== 'no match'){ + if(resdata !== 'no match'){ //resdata = JSON.parse(data); console.log(resdata.status);