은승우

Update app.js

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