diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-04-15 13:20:52 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-04-15 13:20:52 +0900 |
| commit | 2d7525b2f656edcdb2a99f2145f13842d4306a64 (patch) | |
| tree | 1bc7a3a7600b8ce1a0d86e294a29c1aa1436c072 /src/server/activitypub.ts | |
| parent | Fix bug (diff) | |
| download | sharkey-2d7525b2f656edcdb2a99f2145f13842d4306a64.tar.gz sharkey-2d7525b2f656edcdb2a99f2145f13842d4306a64.tar.bz2 sharkey-2d7525b2f656edcdb2a99f2145f13842d4306a64.zip | |
Fix bug
Diffstat (limited to 'src/server/activitypub.ts')
| -rw-r--r-- | src/server/activitypub.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/activitypub.ts b/src/server/activitypub.ts index 1682fc27d4..e27e2552f3 100644 --- a/src/server/activitypub.ts +++ b/src/server/activitypub.ts @@ -1,5 +1,5 @@ import * as Router from 'koa-router'; -const koaBody = require('koa-body'); +const json = require('koa-json-body'); const httpSignature = require('http-signature'); import { createHttp } from '../queue'; @@ -19,7 +19,7 @@ const router = new Router(); //#region Routing // inbox -router.post('/users/:user/inbox', koaBody(), ctx => { +router.post('/users/:user/inbox', json(), ctx => { let signature; ctx.req.headers.authorization = 'Signature ' + ctx.req.headers.signature; |