Skip to content

Commit

Permalink
Server body size limit is set in bytes, not mb
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbenincasa committed Jan 26, 2024
1 parent e1c6ac6 commit 258f28e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export async function initServer(opts: ServerOptions) {

const updateXMLPromise = scheduledJobsById[UpdateXmlTvTask.ID]?.runNow();

const app = fastify({ logger: false, bodyLimit: 50 * 1024 });
const app = fastify({ logger: false, bodyLimit: 50 * 1024 * 1024 });
await app
.setValidatorCompiler(validatorCompiler)
.setSerializerCompiler(serializerCompiler)
Expand Down

0 comments on commit 258f28e

Please sign in to comment.