lambert-server: Remove unused jsonBody option

This commit is contained in:
Rory&
2026-03-21 14:51:46 +01:00
parent 894bfbe6d4
commit 5445706dcf
2 changed files with 1 additions and 3 deletions

View File

@@ -46,7 +46,7 @@ export class SpacebarServer extends Server {
constructor(opts?: Partial<SpacebarServerOptions>) {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
super({ ...opts, errorHandler: false, jsonBody: false });
super({ ...opts, errorHandler: false });
}
async start() {

View File

@@ -7,7 +7,6 @@ export type ServerOptions = {
host: string;
production: boolean;
serverInitLogging: boolean;
jsonBody: boolean;
server: http.Server;
app: Application;
};
@@ -24,7 +23,6 @@ export class Server {
if (!opts.host) opts.host = "0.0.0.0";
if (opts.production == null) opts.production = false;
if (opts.serverInitLogging == null) opts.serverInitLogging = true;
if (opts.jsonBody == null) opts.jsonBody = true;
if (opts.server) this.http = opts.server;
this.options = <ServerOptions>opts;