mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix code
This commit is contained in:
@@ -85,7 +85,7 @@ public class CharSequenceResource implements Resource, Serializable {
|
||||
|
||||
@Override
|
||||
public byte[] readBytes() throws IORuntimeException {
|
||||
return this.data.toString().getBytes(this.charset);
|
||||
return StrUtil.bytes(this.data, this.charset);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user