Merge pull request #2474 from mei23/mei-0825-appleroma2

Pleromaとつながらないのを修正
This commit is contained in:
syuilo
2018-08-25 16:33:02 +09:00
committed by GitHub
11 changed files with 53 additions and 19 deletions

View File

@@ -25,7 +25,7 @@ function inbox(ctx: Router.IRouterContext) {
ctx.req.headers.authorization = 'Signature ' + ctx.req.headers.signature;
try {
signature = httpSignature.parseRequest(ctx.req);
signature = httpSignature.parseRequest(ctx.req, { 'headers': [] });
} catch (e) {
ctx.status = 401;
return;