diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-04-15 12:51:05 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-04-15 12:51:05 +0900 |
| commit | eebd5f62b37a1ed72fd34f2b66dd8f6723c35ee2 (patch) | |
| tree | 5b320cadd2acfcefb98f0a7e39e961d59d9caebd /src/server/activitypub.ts | |
| parent | oops (diff) | |
| download | sharkey-eebd5f62b37a1ed72fd34f2b66dd8f6723c35ee2.tar.gz sharkey-eebd5f62b37a1ed72fd34f2b66dd8f6723c35ee2.tar.bz2 sharkey-eebd5f62b37a1ed72fd34f2b66dd8f6723c35ee2.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 954cc7480e..1682fc27d4 100644 --- a/src/server/activitypub.ts +++ b/src/server/activitypub.ts @@ -1,6 +1,6 @@ import * as Router from 'koa-router'; const koaBody = require('koa-body'); -const parseRequest = require('http-signature'); +const httpSignature = require('http-signature'); import { createHttp } from '../queue'; import pack from '../remote/activitypub/renderer'; @@ -25,7 +25,7 @@ router.post('/users/:user/inbox', koaBody(), ctx => { ctx.req.headers.authorization = 'Signature ' + ctx.req.headers.signature; try { - signature = parseRequest(ctx.req); + signature = httpSignature.parseRequest(ctx.req); } catch (e) { ctx.status = 401; return; |