Skip to content

Commit 70db7ea

Browse files
committed
1 parent 571fe0c commit 70db7ea

File tree

1 file changed

+3
-0
lines changed
  • kubernetes/src/main/java/io/kubernetes/client

1 file changed

+3
-0
lines changed

kubernetes/src/main/java/io/kubernetes/client/JSON.java

+3
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,14 @@ public class ByteArrayAdapter extends TypeAdapter<byte[]> {
126126

127127
@Override
128128
public void write(JsonWriter out, byte[] value) throws IOException {
129+
boolean oldHtmlSafe = out.isHtmlSafe();
130+
out.setHtmlSafe(false);
129131
if (value == null) {
130132
out.nullValue();
131133
} else {
132134
out.value(ByteString.of(value).base64());
133135
}
136+
out.setHtmlSafe(oldHtmlSafe);
134137
}
135138

136139
@Override

0 commit comments

Comments
 (0)