diff --git a/packages/backend/src/server/hsts.ts b/packages/backend/src/server/hsts.ts index d8f606b8bb..6c4a3005dc 100644 --- a/packages/backend/src/server/hsts.ts +++ b/packages/backend/src/server/hsts.ts @@ -20,11 +20,11 @@ export function makeHstsHook(host: string, preload: boolean = false): onRequestH reply.header('strict-transport-security', 'max-age=31536000; includeSubDomains; preload'); } done(); - } + }; } else { return (request, reply, done) => { reply.header('strict-transport-security', 'max-age=15552000'); done(); - } + }; } -} \ No newline at end of file +}