mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 03:16:11 +01:00
fix(server): headers sent twice
This commit is contained in:
@@ -2,9 +2,9 @@ import { isRunningUnderRosetta2 } from "../../services/utils.js";
|
|||||||
import type { Request, Response } from "express";
|
import type { Request, Response } from "express";
|
||||||
|
|
||||||
function rosettaCheck(req: Request, res: Response) {
|
function rosettaCheck(req: Request, res: Response) {
|
||||||
res.json({
|
return {
|
||||||
isRunningUnderRosetta2: isRunningUnderRosetta2()
|
isRunningUnderRosetta2: isRunningUnderRosetta2()
|
||||||
});
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|||||||
Reference in New Issue
Block a user