Skip to content

Commit 121ac6a

Browse files
Use utf8 bytes explicitly
1 parent 7fd1de0 commit 121ac6a

File tree

1 file changed

+2
-1
lines changed
  • smithy-protocol-test-traits/src/main/java/software/amazon/smithy/protocoltests/traits/eventstream

1 file changed

+2
-1
lines changed

smithy-protocol-test-traits/src/main/java/software/amazon/smithy/protocoltests/traits/eventstream/Event.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
*/
55
package software.amazon.smithy.protocoltests.traits.eventstream;
66

7+
import java.nio.charset.StandardCharsets;
78
import java.util.Base64;
89
import java.util.List;
910
import java.util.Map;
@@ -243,7 +244,7 @@ public Builder bodyMediaType(String bodyMediaType) {
243244
}
244245

245246
public Builder bytes(String bytes) {
246-
this.bytes = Base64.getDecoder().decode(bytes);
247+
this.bytes = Base64.getDecoder().decode(bytes.getBytes(StandardCharsets.UTF_8));
247248
return this;
248249
}
249250

0 commit comments

Comments
 (0)