Skip to content

Commit

Permalink
Fix a little error in the middleware aprt
Browse files Browse the repository at this point in the history
  • Loading branch information
adriendulong committed Nov 15, 2017
1 parent 22eb441 commit 83fd15b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,8 @@ class Messenger extends EventEmitter {
return this._verifyToken(req, res);
if (req.method !== 'POST') return res.end();

let body = '';

req.on('data', chunk => {
body += chunk;
});
Expand Down

0 comments on commit 83fd15b

Please sign in to comment.