Showing
1 changed file
with
2 additions
and
1 deletions
... | @@ -105,7 +105,8 @@ async function handleEvent(event) { | ... | @@ -105,7 +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 | - var data= Buffer.from(body, 'base64').toString(); | 108 | + var data= body.toString('utf-8'); |
109 | + | ||
109 | console.log(data); | 110 | console.log(data); |
110 | var text=''; | 111 | var text=''; |
111 | while(data.indexOf('text\\')!=-1) | 112 | while(data.indexOf('text\\')!=-1) | ... | ... |
-
Please register or login to post a comment