-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Encode data message content as raw JSON
When encoding a data message, the content should remain unmodified. When it is typed as a `[]byte`, it ends up getting encoded in base64. Typing it as `json.RawMessage` ensures the content is unmodified when marshaled into JSON. Signed-off-by: Link Dupont <link@sub-pop.net>
- Loading branch information
1 parent
2bd2912
commit c3d9e18
Showing
2 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters