Skip to content

Commit

Permalink
Increase web payload limit
Browse files Browse the repository at this point in the history
  • Loading branch information
mayfield committed Apr 15, 2024
1 parent b3c2104 commit 8bf6421
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webserver.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ async function _start({ip, port, rpcEventEmitters, statsProc}) {
'mods/v1': '[GET] List available mods (i.e. plugins)',
}], null, 4);
const api = express.Router();
api.use(express.json());
api.use(express.json({limit: 32 * 1024 * 1024}));
api.use((req, res, next) => {
res.setHeader('Content-Type', 'application/json');
res.setHeader('Access-Control-Allow-Origin', '*');
Expand Down

0 comments on commit 8bf6421

Please sign in to comment.