mirror of
https://github.com/jo-inc/camofox-browser.git
synced 2026-10-02 04:14:41 +08:00
Merge remote-tracking branch 'origin/pr-8398' into fix/evaluate-body-limit
This commit is contained in:
@@ -117,7 +117,7 @@ function log(level, msg, fields = {}) {
|
||||
}
|
||||
|
||||
const app = express();
|
||||
app.use(express.json({ limit: '100kb' }));
|
||||
app.use(express.json({ limit: CONFIG.maxBodySize }));
|
||||
|
||||
// Request logging + metrics middleware
|
||||
app.use((req, res, next) => {
|
||||
@@ -4581,7 +4581,7 @@ app.get('/tabs/:tabId/stats', async (req, res) => {
|
||||
* schema:
|
||||
* $ref: '#/components/schemas/Error'
|
||||
*/
|
||||
app.post('/tabs/:tabId/evaluate', express.json({ limit: '1mb' }), async (req, res) => {
|
||||
app.post('/tabs/:tabId/evaluate', express.json({ limit: CONFIG.maxBodySize }), async (req, res) => {
|
||||
try {
|
||||
const { userId, expression } = req.body;
|
||||
if (!userId) return res.status(400).json({ error: 'userId is required' });
|
||||
|
||||
Reference in New Issue
Block a user