-
-
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
Options must allow to provide options to queryparser #42
Comments
in the future, extended should be replaced by something like unless you want to support options. i'm not sure waht to call it. maybe just pass |
+1 for accepting |
@lazutkin please check open issues first :) #41 is already about this. That issue had me open an issue with I would have had the options added in yesterday, but I can only work so fast between home and the hospital :) @jonathanong it won't really work, especially since the core |
So as a FYI here, I implemented something that would allow changing the |
Heh, pretty long time)) Nevertheless, I think that it depends on projects so at least users should have a way to change options for what is appropriate to projects. |
This module only works with web servers, and you cannot hang you web server for 2s, so no. You can always directly use qs or, since I submitted the slowness report to the qs owners, if it is fixed I will allow increasing it here. Also note, I am taking about parameterLimit here, not arrayLimit like your original post was about. I don't let have any problems letting people change that option (doing some tests first to figure out a max. This limit is what prevents a DoS on servers. Without some limit for this, you can instantly crash a server due to OOM with a tiny packet). |
@lazutkin it looks like |
So the |
Yes, reasonable! |
@lazutkin since setting it to |
The main reason I'm not very keen on allowing directly passing in any options to the underlying query parser is then if the parser itself is switched by this module, it would change the public API of this module. Plus it doesn't allow me to normalize options where the two different parsers will take the same option names (like |
Lib must allow to provide options to
queryparser
since there are cases when we need to provide more than 20-element array in query-string which by default will be parsed into JSON-Object instead of array.The text was updated successfully, but these errors were encountered: