mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-20 23:53:13 +09:00
Port increase limit of Json payloads to master server
The default limit of 100kb to JSON payloads of bodyParser can be
exceeded when running modded games with researchSync. Increase the
limit to 10mb as a bandaid to fix this issue.
This is a port of 25eb5e5.
This commit is contained in:
1 parent
f4b2300d9b
commit
7359f9075e
2 files changed
+5
-1
No files matched your search
@@ -69,6 +69,8 @@ Version 1.2.3
|
|||||||
- Disabled uploading mods to the master server by default as this is mostly
|
- Disabled uploading mods to the master server by default as this is mostly
|
||||||
just a waste of bandwidth with the mod portal being integrated into the
|
just a waste of bandwidth with the mod portal being integrated into the
|
||||||
game now.
|
game now.
|
||||||
|
- Fixed researchSync breaking with heavily modded games due to the tech tree
|
||||||
|
exceeding the default 100kb limit on JSON payloads.
|
||||||
|
|
||||||
|
|
||||||
Version 1.2.2
|
Version 1.2.2
|
||||||
|
|||||||
@@ -47,7 +47,9 @@ const fileUpload = require('express-fileupload');
|
|||||||
var app = express();
|
var app = express();
|
||||||
|
|
||||||
app.use(cookieParser());
|
app.use(cookieParser());
|
||||||
app.use(bodyParser.json());
|
app.use(bodyParser.json({
|
||||||
|
limit: '10mb',
|
||||||
|
}));
|
||||||
app.use(bodyParser.urlencoded({
|
app.use(bodyParser.urlencoded({
|
||||||
parameterLimit: 100000,
|
parameterLimit: 100000,
|
||||||
limit: '10mb',
|
limit: '10mb',
|
||||||
|
|||||||
Reference in new issue
Block a user