We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
默认的是100k, 希望能改成可配置的,谢谢
let bodyParserMethd = bodyParser.json({ limit }); const contentType = req.get('Content-Type'); if (contentType === 'text/plain') { bodyParserMethd = bodyParser.raw({limit, type: 'text/plain' }); } else if (contentType === 'text/html') { bodyParserMethd = bodyParser.text({limit, type: 'text/html' }); } else if (contentType === 'application/x-www-form-urlencoded') { bodyParserMethd = bodyParser.urlencoded({ limit, extended: false }); }
The text was updated successfully, but these errors were encountered:
Add bodyParserJSON/bodyParserText/bodyParserRaw/bodyParserUrlencoded …
f321aa9
…config options. #37
released v1.6.8 #37
10693af
@qjekingstar Upgrade + [email protected]
+ [email protected]
Sorry, something went wrong.
No branches or pull requests
默认的是100k, 希望能改成可配置的,谢谢
The text was updated successfully, but these errors were encountered: