mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-27 08:10:24 +01:00
fix lint
Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
This commit is contained in:
parent
238fb2727d
commit
65c85ea922
1 changed files with 3 additions and 3 deletions
|
@ -20,11 +20,11 @@ export function makeHstsHook(host: string, preload: boolean = false): onRequestH
|
||||||
reply.header('strict-transport-security', 'max-age=31536000; includeSubDomains; preload');
|
reply.header('strict-transport-security', 'max-age=31536000; includeSubDomains; preload');
|
||||||
}
|
}
|
||||||
done();
|
done();
|
||||||
}
|
};
|
||||||
} else {
|
} else {
|
||||||
return (request, reply, done) => {
|
return (request, reply, done) => {
|
||||||
reply.header('strict-transport-security', 'max-age=15552000');
|
reply.header('strict-transport-security', 'max-age=15552000');
|
||||||
done();
|
done();
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue