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) }