-
-
Notifications
You must be signed in to change notification settings - Fork 695
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
keep_blank_values=True
when parsing request.args
#1551
Comments
This is technically a backwards-incompatible for any plugins that use |
Python documentation for
|
Here's an example of the difference that causes: >>> import urllib.parse
>>> urllib.parse.parse_qs("foo=bar")
{'foo': ['bar']}
>>> urllib.parse.parse_qs("foo=bar&baz=")
{'foo': ['bar']}
>>> urllib.parse.parse_qs("foo=bar&baz=", keep_blank_values=True)
{'foo': ['bar'], 'baz': ['']} |
This code in
TableView
wouldn't be necessary:datasette/datasette/views/table.py
Lines 396 to 399 in 492f983
If that happened here instead:
datasette/datasette/utils/asgi.py
Lines 98 to 100 in 492f983
Originally posted by @simonw in #1518 (comment)
The text was updated successfully, but these errors were encountered: