summaryrefslogtreecommitdiff
path: root/src/api/service/github.ts
diff options
context:
space:
mode:
authorsyuilo⭐️ <Syuilotan@yahoo.co.jp>2017-02-16 20:08:28 +0900
committerGitHub <noreply@github.com>2017-02-16 20:08:28 +0900
commit508c1da792c5bf4dece617b26d0f20ce240e857f (patch)
tree788634c001103ca40754b9f34585e4325a1a6625 /src/api/service/github.ts
parentMerge pull request #174 from syuilo/greenkeeper/gulp-typescript-3.1.5 (diff)
downloadsharkey-508c1da792c5bf4dece617b26d0f20ce240e857f.tar.gz
sharkey-508c1da792c5bf4dece617b26d0f20ce240e857f.tar.bz2
sharkey-508c1da792c5bf4dece617b26d0f20ce240e857f.zip
[Server] Fix bug
Diffstat (limited to 'src/api/service/github.ts')
-rw-r--r--src/api/service/github.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/api/service/github.ts b/src/api/service/github.ts
index 1f3d5671a0..13ceb87bf2 100644
--- a/src/api/service/github.ts
+++ b/src/api/service/github.ts
@@ -23,6 +23,7 @@ module.exports = async (app: express.Application) => {
app.post('/hooks/github', (req, res, next) => {
if ((new Buffer(req.headers['x-hub-signature'])).equals(new Buffer('sha1=' + crypto.createHmac('sha1', config.github_bot.hook_secret).update(JSON.stringify(req.body)).digest('hex')))) {
handler.emit(req.headers['x-github-event'], req.body);
+ res.sendStatus(200);
} else {
res.sendStatus(400);
}