bkahlert opened a new pull request #232: Fix handling of query parameters with 
no value, like `?foo`
URL: https://github.com/apache/tomcat/pull/232
 
 
   Currently undefined values are returned as an empty string by 
`Parameters#getParameter(String)`, though `null` should be returned.
   
   **Background:**
   A query string can contain defined and undefined variable values.
   A variable with a defined value is followed by a `=` (e.g. `?foo=abc` where 
`foo` is the string `abc`, or `bar=` where the string is empty).
   A variable with an undefined value is not followed by `=`.
   In Java such a value is coded with `null` and not an empty string because 
the latter is already the defined value of a string with zero length.
   
   See also https://tools.ietf.org/html/rfc6570#section-2.3 and 
https://github.com/OpenFeign/feign/issues/872#issuecomment-452390655

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

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

Reply via email to