mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-11 16:09:01 +08:00
fix: 暂时将后端上传限制放宽到 1mb
This commit is contained in:
parent
a65cd1f1c9
commit
f1e1d50a2c
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "sub-store",
|
"name": "sub-store",
|
||||||
"version": "2.14.45",
|
"version": "2.14.46",
|
||||||
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.",
|
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.",
|
||||||
"main": "src/main.js",
|
"main": "src/main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
2
backend/src/vendor/express.js
vendored
2
backend/src/vendor/express.js
vendored
@ -17,7 +17,7 @@ export default function express({ substore: $, port }) {
|
|||||||
const express_ = eval(`require("express")`);
|
const express_ = eval(`require("express")`);
|
||||||
const bodyParser = eval(`require("body-parser")`);
|
const bodyParser = eval(`require("body-parser")`);
|
||||||
const app = express_();
|
const app = express_();
|
||||||
app.use(bodyParser.json({ verify: rawBodySaver }));
|
app.use(bodyParser.json({ verify: rawBodySaver, limit: '1mb' }));
|
||||||
app.use(
|
app.use(
|
||||||
bodyParser.urlencoded({ verify: rawBodySaver, extended: true }),
|
bodyParser.urlencoded({ verify: rawBodySaver, extended: true }),
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user