은승우

Update app.js

Showing 1 changed file with 1 additions and 1 deletions
...@@ -106,7 +106,7 @@ async function handleEvent(event) { ...@@ -106,7 +106,7 @@ async function handleEvent(event) {
106 'Content-Type': 'application/json', 106 'Content-Type': 'application/json',
107 'Ocp-Apim-Subscription-Key': '979dc5d63344438fa4701c62feebb7dc' 107 'Ocp-Apim-Subscription-Key': '979dc5d63344438fa4701c62feebb7dc'
108 }, 108 },
109 - body: fs.readFileSync('./photo/1.png') 109 + body: fs.readFile('./photo/1.png')
110 }; 110 };
111 console.log(body); 111 console.log(body);
112 request.post(options, function (error, response, body) { 112 request.post(options, function (error, response, body) {
......