We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 34339b1 + 4ae3877 commit 1eaa6faCopy full SHA for 1eaa6fa
Node/core/lib/bots/ChatConnector.js
@@ -36,12 +36,11 @@ var ChatConnector = (function () {
36
_this.verifyBotFramework(req, res);
37
}
38
else {
39
- var requestData = '';
+ var requestData = [];
40
req.on('data', function (chunk) {
41
- requestData += chunk;
42
- });
43
- req.on('end', function () {
44
- req.body = JSON.parse(requestData);
+ requestData.push(chunk)
+ }).on('end', function () {
+ req.body = Buffer.concat(body).toString();
45
46
});
47
0 commit comments