We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16c45d4 commit 6730ab1Copy full SHA for 6730ab1
src/server/Worker.ts
@@ -78,7 +78,6 @@ export async function startWorker() {
78
});
79
80
app.set("trust proxy", 3);
81
- app.set("json replacer", replacer); // BigInt serialization
82
app.use(express.json());
83
app.use(express.static(path.join(__dirname, "../../out")));
84
app.use(
@@ -254,11 +253,19 @@ export async function startWorker() {
254
253
255
}
256
257
- return res.status(200).json({
258
- exists: true,
259
- gameRecord: gameRecord,
260
- success: true,
261
- });
+ return res
+ .status(200)
+ .header("Content-Type", "application/json")
+ .send(
+ JSON.stringify(
+ {
262
+ exists: true,
263
+ gameRecord: gameRecord,
264
+ success: true,
265
+ },
266
+ replacer,
267
+ ),
268
+ );
269
}),
270
);
271
0 commit comments