은승우

Update app.js

Showing 1 changed file with 2 additions and 2 deletions
...@@ -105,8 +105,8 @@ async function handleEvent(event) { ...@@ -105,8 +105,8 @@ async function handleEvent(event) {
105 }; 105 };
106 106
107 request.post(options, function (error, response, body) { 107 request.post(options, function (error, response, body) {
108 - console.log(mime.contentType(chunk)); 108 + let jsonRes = JSON.stringify(JSON.parse(body), null, ' ');
109 - var data= body.toString('utf-8'); 109 + console.log(jsonRes);
110 var text=''; 110 var text='';
111 while(data.indexOf('text\\')!=-1) 111 while(data.indexOf('text\\')!=-1)
112 { 112 {
......