-
Notifications
You must be signed in to change notification settings - Fork 65
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
Parse "[]&y=1" returns empty string #75
Comments
Besides that this is an illegal qs anyhow, it would be fixed by altering the parser. I was thinking of a RegExp based parser. |
@eugene-piatenko why would you expect anything useful out of that query-string? |
We could at least hope for |
i sort of feel like a lot of these requests to support broken query strings are akin to sending broken json, it's just broken, it's a client error, though unfortunately since there's no spec we don't have the luxury of enforcing that haha |
Haha, yeah. I would have loved the W3C to do some more work on URLs, specifically querystrings, as their importance is growing in today's web apps. But then again, vendors take years to implement those specs. @eugene-piatenko I will try to come up with a more forgiving parser in #88. In the meanwhile you're welcome to submit a PR. :) |
Parsing
x[]&y=1
returnsbut parsing
[]&y=1
returns""
(empty string)The text was updated successfully, but these errors were encountered: