server: HTTP signature requires date header

The default of the library used is to require either of the "date" or
"x-date" headers. It does not seem sensible to pass on this default.
It may be to fix federation with another software but that software
should be considered broken, and it does not seem reasonable to
potentially get an outdated signature just to fix federation with some
buggy software.
This commit is contained in:
Johann150 2023-04-13 11:04:35 +02:00
parent 95ecdeabff
commit 808ad2a505
Signed by untrusted user: Johann150
GPG key ID: 9EE6577A2A06F8F1

View file

@ -28,7 +28,7 @@ function inbox(ctx: Router.RouterContext): void {
let signature;
try {
signature = httpSignature.parseRequest(ctx.req, { 'headers': [] });
signature = httpSignature.parseRequest(ctx.req);
} catch (e) {
ctx.status = 401;
return;