은승우

Update app.js

Showing 1 changed file with 1 additions and 1 deletions
...@@ -103,7 +103,7 @@ async function handleEvent(event) { ...@@ -103,7 +103,7 @@ async function handleEvent(event) {
103 body: fs.readFileSync('./photo/1.png') 103 body: fs.readFileSync('./photo/1.png')
104 }; 104 };
105 request.post(options, function (error, response, body) { 105 request.post(options, function (error, response, body) {
106 - data=JSON.stringify(JSON.parse(body), null, ' '); 106 + var data=body;
107 console.log(data); 107 console.log(data);
108 var text=''; 108 var text='';
109 while(data.indexOf('text\\')!=-1) 109 while(data.indexOf('text\\')!=-1)
......