diff --git a/app/src/main/java/io/legado/app/web/HttpServer.kt b/app/src/main/java/io/legado/app/web/HttpServer.kt index 84f8de3bb..dd8071b95 100644 --- a/app/src/main/java/io/legado/app/web/HttpServer.kt +++ b/app/src/main/java/io/legado/app/web/HttpServer.kt @@ -71,6 +71,7 @@ class HttpServer(port: Int) : NanoHTTPD(port) { val outputStream = ByteArrayOutputStream() (returnData.data as Bitmap).compress(Bitmap.CompressFormat.PNG, 100, outputStream) val byteArray = outputStream.toByteArray() + outputStream.close() val inputStream = ByteArrayInputStream(byteArray) newFixedLengthResponse( Response.Status.OK,