-
-
Notifications
You must be signed in to change notification settings - Fork 727
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
Allow options to be passed to the qs module when using bodyParser.urlencoded({ extended: true }) #46
Comments
The answer is no, because the reason the option is called |
Sorry, I'm in the mountains and lost cell before I could finish. I will have a solution for you tonight, in the form of v2. v2 will actually have the default you want, but it will also allow you to use any parser you want, so you can supply any options to qs or even use a different parser module. I hope that helps. |
This is perfect! Thank you for the quick turn around. 🤘 |
No problem! Though, I hate to say it, I did not get as much time tonight as I was hoping, so only part of the 2.0 release has been completed so far. I should have the rest completed sometime tomorrow :) |
Hi @jcready just posting an update here, don't want to leave you hanging :) I have been on vacation this week (can't you tell? ;) ), so it's just slow going since I'm just fitting this in to downtime, haha. The 2.0 release itself does have a little bit more than just this change, including a whole new module that allows people to use body parsing without express at all! I made some great progress yesterday, though :) |
You take your time, sir! And enjoy that vacation. 😎 |
I have run into an issue with urlencoded sparse arrays and the way the qs module is handling them:
Ideally I would like to be able to pass options to the
qs.parse()
call so that I can override thearrayLimit
option. I believe the syntax for doing this could look something like this:The
extended
option would still evaluate to "truthy" and would therefore use the qs module for parsing, but it would also allow developers to override the current hardsetarrayLimit
option passed toqs.parse()
(along with any other qs specific options).The text was updated successfully, but these errors were encountered: