2
0
mirror of https://github.com/yagop/node-telegram-bot-api synced 2025-08-29 13:27:44 +00:00

Merge branch 'icdevin-patch-1'

This commit is contained in:
Yago 2016-06-06 23:07:40 +02:00
commit 1dae6121f8

View File

@ -71,7 +71,7 @@ class TelegramBotWebHook {
} else if (req.method === 'POST') {
req
.pipe(bl(this._parseBody))
.on('end', () => res.end('OK'));
.on('finish', () => res.end('OK'));
} else {
// Authorized but not a POST
debug('WebHook request isn\'t a POST');