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

Fix jsonObjectOf() binary data encoding #203

Merged
merged 1 commit into from
Jun 21, 2021
Merged

Conversation

Ultranium
Copy link
Contributor

A fix for a problem mentioned in the issue #202.

Use JsonUtil.BASE64_ENCODER to match the JsonObject binary data encoding format (see https://github.com/eclipse-vertx/vert.x/blob/11ab144725e551be591118831377101015e1392c/src/main/java/io/vertx/core/json/impl/JsonUtil.java#L43)

JsonObject uses JsonUtil.BASE64_ENCODER to encode binary data. Depending of system property "vertx.json.base64" value, it can be set to either Base64.getUrlEncoder().withoutPadding() (the default one) or Base64.getEncoder().

This change should make the jsonObjectOf() helper to match the JsonObject() behavior.

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

Successfully merging this pull request may close these issues.

None yet

2 participants