From 62dc50e56f2361c33677db397c8e781ad9377e93 Mon Sep 17 00:00:00 2001 From: gedoor Date: Wed, 11 Aug 2021 12:26:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/web/HttpServer.kt | 1 + 1 file changed, 1 insertion(+) 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,