Skip to content

Commit

Permalink
Use maxResponseSize for json body limit
Browse files Browse the repository at this point in the history
  • Loading branch information
tiberiuichim committed Jan 31, 2022
1 parent 7687265 commit 5f13d15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const applyConfig = (config) => {
});

const middleware = express.Router();
middleware.use(express.json());
middleware.use(express.json({ limit: config.settings.maxResponseSize }));
middleware.use(express.urlencoded({ extended: true }));
middleware.all('**/_es/*', handler);
middleware.id = 'esProxyMiddleware';
Expand Down

0 comments on commit 5f13d15

Please sign in to comment.