Skip to content

Commit

Permalink
Minor tweak and signing commit
Browse files Browse the repository at this point in the history
Signed-off-by: Day, Jeremy(jday) <[email protected]>
  • Loading branch information
JemDay committed Jan 27, 2022
1 parent 70766b1 commit b199057
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,9 @@ public CloudEvent end(CloudEventData data) throws CloudEventRWException {
*/
protoBuilder.setTextDataBytes(ByteString.copyFrom(data.toBytes()));
} else {
/**
* All other content is assumed to be binary.
*/
ByteString byteString = ByteString.copyFrom(data.toBytes());
protoBuilder.setBinaryData(byteString);
}
Expand Down

0 comments on commit b199057

Please sign in to comment.