pull/32/head
kunfei 5 years ago
parent 7b722e4bcd
commit 946c3814a8
  1. 3
      app/src/main/java/io/legado/app/web/HttpServer.kt

@ -56,9 +56,8 @@ class HttpServer(port: Int) : NanoHTTPD(port) {
} }
if (returnData == null) { if (returnData == null) {
if (uri.endsWith("/")) { if (uri.endsWith("/"))
uri += "index.html" uri += "index.html"
}
return assetsWeb.getResponse(uri) return assetsWeb.getResponse(uri)
} }

Loading…
Cancel
Save