How to view and modify incoming HTTP post data size limits

こ雲淡風輕ζ 提交于 2019-12-11 19:33:28

问题


I am using Iron-Router with my Meteor app to accept incoming HTTP requests. How do I know what the POST data size limits are? How do I set the limit for it?


回答1:


I'm not sure about how to check the limits, but you can set limits with the following code:

Router.configureBodyParsers = function() {
    Router.onBeforeAction(Iron.Router.bodyParser.urlencoded({
        extended : true,
        limit : "8mb"
    }));
};


来源:https://stackoverflow.com/questions/30749930/how-to-view-and-modify-incoming-http-post-data-size-limits

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!