mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 12:13:48 +01:00
Fix bug
This commit is contained in:
parent
1c2aaec303
commit
11cb8a3ba8
@ -137,10 +137,10 @@
|
|||||||
"js-yaml": "3.11.0",
|
"js-yaml": "3.11.0",
|
||||||
"jsdom": "11.7.0",
|
"jsdom": "11.7.0",
|
||||||
"koa": "2.5.0",
|
"koa": "2.5.0",
|
||||||
"koa-body": "^2.5.0",
|
|
||||||
"koa-bodyparser": "4.2.0",
|
"koa-bodyparser": "4.2.0",
|
||||||
"koa-compress": "^2.0.0",
|
"koa-compress": "^2.0.0",
|
||||||
"koa-favicon": "2.0.1",
|
"koa-favicon": "2.0.1",
|
||||||
|
"koa-json-body": "^5.3.0",
|
||||||
"koa-mount": "3.0.0",
|
"koa-mount": "3.0.0",
|
||||||
"koa-multer": "1.0.2",
|
"koa-multer": "1.0.2",
|
||||||
"koa-router": "7.4.0",
|
"koa-router": "7.4.0",
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import * as Router from 'koa-router';
|
import * as Router from 'koa-router';
|
||||||
const koaBody = require('koa-body');
|
const json = require('koa-json-body');
|
||||||
const httpSignature = require('http-signature');
|
const httpSignature = require('http-signature');
|
||||||
|
|
||||||
import { createHttp } from '../queue';
|
import { createHttp } from '../queue';
|
||||||
@ -19,7 +19,7 @@ const router = new Router();
|
|||||||
//#region Routing
|
//#region Routing
|
||||||
|
|
||||||
// inbox
|
// inbox
|
||||||
router.post('/users/:user/inbox', koaBody(), ctx => {
|
router.post('/users/:user/inbox', json(), ctx => {
|
||||||
let signature;
|
let signature;
|
||||||
|
|
||||||
ctx.req.headers.authorization = 'Signature ' + ctx.req.headers.signature;
|
ctx.req.headers.authorization = 'Signature ' + ctx.req.headers.signature;
|
||||||
|
Loading…
Reference in New Issue
Block a user