pull/45/head
kunfei 5 years ago
parent 43cbda6865
commit 8b89e95e48
  1. 2
      app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeUrl.kt

@ -254,6 +254,7 @@ class AnalyzeUrl(
GET, POST GET, POST
} }
@Throws(Exception::class)
fun getResponse(): Call<String> { fun getResponse(): Call<String> {
return when { return when {
method == Method.POST -> { method == Method.POST -> {
@ -276,6 +277,7 @@ class AnalyzeUrl(
} }
} }
@Throws(Exception::class)
fun getResponseAsync(): Deferred<Response<String>> { fun getResponseAsync(): Deferred<Response<String>> {
return when { return when {
method == Method.POST -> { method == Method.POST -> {

Loading…
Cancel
Save