Skip to content
New issue

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

question: Is there a way to override this body size limit? #624

Open
brightgarden opened this issue Jun 29, 2023 · 1 comment
Open

question: Is there a way to override this body size limit? #624

brightgarden opened this issue Jun 29, 2023 · 1 comment
Labels
enhancement Good first issue Good for newcomers / first-timers LOE: low Level Of Effort: low

Comments

@brightgarden
Copy link

.use(bodyParser.json({ limit: '10000kb' }))

I'd like to be able to accept a larger payload, and am willing to submit a PR to let this be configurable with a default value.

Thanks!

@rgwozdz
Copy link
Member

rgwozdz commented Jun 29, 2023

Hello @brightgarden. Yes, just have the value be set as an option (make sure there is a default fallback value). Then send it in as an Koop instance option:

function Koop (options) {
.

Thanks!

@rgwozdz rgwozdz added enhancement Good first issue Good for newcomers / first-timers LOE: low Level Of Effort: low labels Sep 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Good first issue Good for newcomers / first-timers LOE: low Level Of Effort: low
Projects
None yet
Development

No branches or pull requests

2 participants