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

Update MediaType parser to handle parameter without value (#3999) #4000

Conversation

romain-grecourt
Copy link
Contributor

@romain-grecourt romain-grecourt commented Mar 23, 2022

Use consumeTokenIfPresent instead of consumeToken
Update consumeTokenIfPresent to return null instead of an empty string when matcher is not matched
Add unit test

…#3999)

* Update MediaType parser to handle parameter without value.

Use consumeTokenIfPresent instead of consumeToken
Update consumeTokenIfPresent to return null instead of an empty string when matcher is not matched
Add unit test

* handle single empty parameter, update test case
@romain-grecourt romain-grecourt merged commit 853b095 into helidon-io:helidon-2.x Mar 24, 2022
@romain-grecourt romain-grecourt deleted the media-type-empty-param-value-2.x branch March 24, 2022 02:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants