summaryrefslogtreecommitdiff
path: root/src/api
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-02-17 05:49:40 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-02-17 05:49:40 +0900
commit397d16ecbb6df2517524ca247e354e18cd1c03f0 (patch)
tree1ca01a905d4aac8464c65cb7086e2e1bd163832a /src/api
parent[Client:Mobile] Implement file rename (diff)
parent[Server] Fix bug (diff)
downloadsharkey-397d16ecbb6df2517524ca247e354e18cd1c03f0.tar.gz
sharkey-397d16ecbb6df2517524ca247e354e18cd1c03f0.tar.bz2
sharkey-397d16ecbb6df2517524ca247e354e18cd1c03f0.zip
Merge branch 'master' of https://github.com/syuilo/misskey
Diffstat (limited to 'src/api')
-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);
}