Skip to content

unify absent of HTTP parameter and empty strings #407

@jknack

Description

@jknack

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions