From 946c3814a843eafc1b659676d00b411f3f383c48 Mon Sep 17 00:00:00 2001 From: kunfei Date: Mon, 2 Sep 2019 17:01:40 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/web/HttpServer.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 78f1cae11..4f28db10b 100644 --- a/app/src/main/java/io/legado/app/web/HttpServer.kt +++ b/app/src/main/java/io/legado/app/web/HttpServer.kt @@ -56,9 +56,8 @@ class HttpServer(port: Int) : NanoHTTPD(port) { } if (returnData == null) { - if (uri.endsWith("/")) { + if (uri.endsWith("/")) uri += "index.html" - } return assetsWeb.getResponse(uri) }