mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
fix(server): headers sent twice
This commit is contained in:
parent
a20a06c994
commit
db3c008c07
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user