Skip to content
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

unify absent of HTTP parameter and empty strings #407

Closed
jknack opened this issue Jul 1, 2016 · 0 comments
Closed

unify absent of HTTP parameter and empty strings #407

jknack opened this issue Jul 1, 2016 · 0 comments
Milestone

Comments

@jknack
Copy link
Member

jknack commented Jul 1, 2016

Given:

{
  post("/path", req -> req.param("foo").toOptional());
}

A call to POST /path prints Optional.empty

While a call to POST /path?foo= prints "" (empty string)

Next release will handle absent or empty string parameter as optional parameter, so both example will print Optional.empty

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant