Fix bug
This commit is contained in:
parent
eebd5f62b3
commit
2d7525b2f6
2 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue