-
Notifications
You must be signed in to change notification settings - Fork 107
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
[BUG] Empty query params are discarded #894
Comments
Hi @nathanhi, are you still facing this issue? |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. |
Hello, I am still seeing this issue. Are there plans to fix this? There is a fix using |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. |
Investigative information
Repro steps
Provide the steps required to reproduce the problem:
__init__.py
?paramwithvalue=foo¶mwithoutvalue
{"paramwithvalue": "foo"}
is returnedExpected behavior
I would expect the
HttpRequest.params
to contain all query params, defaulting to either a value ofNone
or an empty string:Actual behavior
The query parameter is silently discarded:
Known workarounds
The query param can be retrieved via
urllib.parse.parse_qs
from theHttpRequest.url
object:__init__.py
This will return the full set of params:
Contents of the requirements.txt file:
Related information
This seems to be an underlying issue in the protobuf implementation and was already fixed in Azure/azure-functions-language-worker-protobuf#49
The text was updated successfully, but these errors were encountered: