Skip to content

Build your personal knowledge base with Trilium Notes

fix(server): headers sent twice

Elian Dorandb3c008c07bf
diff --git a/apps/server/src/routes/api/system_info.ts b/apps/server/src/routes/api/system_info.ts
index 4d49f4ca2c..9720ecdf70 100644
--- a/apps/server/src/routes/api/system_info.ts
+++ b/apps/server/src/routes/api/system_info.ts
@@ -2,9 +2,9 @@ import { isRunningUnderRosetta2 } from "../../services/utils.js";
import type { Request, Response } from "express";
function rosettaCheck(req: Request, res: Response) {
- res.json({
+ return {
isRunningUnderRosetta2: isRunningUnderRosetta2()
- });
+ }
}
export default {