You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by GitBox <gi...@apache.org> on 2020/01/10 17:08:29 UTC

[GitHub] [tomcat] bkahlert edited a comment on issue #232: Fix handling of query parameters with no value, like `?foo`

bkahlert edited a comment on issue #232: Fix handling of query parameters with no value, like `?foo`
URL: https://github.com/apache/tomcat/pull/232#issuecomment-573089178
 
 
   I think `?foo&foo=1&foo` leading to `{null, "1", null}` is totally valid and imho the expected behavior.
   Asking for a parameter's value `getParameter(String)` should return its value.
   Doing so for a Parameter, that was not provided has no defined behavior to my mind.
   Therefore I advocate for a `isParameter(String)` or similar method that checks if a parameter was provided at all.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org