-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
zuul2 HttpQueryParams get() method issue #527
Comments
Good question, will look into it. |
Hello @artgon, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In source code(https://github.com/Netflix/zuul/blob/2.1/zuul-core/src/main/java/com/netflix/zuul/message/http/HttpQueryParams.java#L118), we can see get() method uses name.toLowerCase() as key, while getFirst() method uses original name.
public List get(String name)
{
return delegate.get(name.toLowerCase());
}
Suppose current url is xxx?cityId[]=1&cityId[]=2, invoke get("cityId") would cause none value which is not expected. Is there any special reason to use lower case of param key rather than original key?
The text was updated successfully, but these errors were encountered: