This commit is contained in:
Looly
2024-09-02 16:12:50 +08:00
parent 063314ee2f
commit a2e8c9d28f
3 changed files with 30 additions and 6 deletions

View File

@@ -92,8 +92,11 @@ public class ResponseBody implements HttpBody, Closeable {
*
* @return 响应内容bytes
*/
@SuppressWarnings("resource")
@Override
public byte[] getBytes() {
// issue#IANZ38 同步数据到内存
sync();
return this.bodyStream.readBytes();
}