mirror of
https://github.com/hotomoe/hotomoe
synced 2024-12-01 16:28:12 +09:00
HTTP Signature検証対象ヘッダにDateが含まれてなくても許容する
This commit is contained in:
parent
92828028db
commit
b3a3238e43
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user