pull/94/head
kunfei 5 years ago
parent 5dee9565e9
commit 5ad242739d
  1. 2
      app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeUrl.kt

@ -162,7 +162,7 @@ class AnalyzeUrl(
} }
if (urlArray.size > 1) { if (urlArray.size > 1) {
val options = GSON.fromJsonObject<Map<String, String>>(urlArray[1]) val options = GSON.fromJsonObject<Map<String, String>>(urlArray[1])
options?.let { options?.let { _ ->
options["method"]?.let { if (it.equals("POST", true)) method = RequestMethod.POST } options["method"]?.let { if (it.equals("POST", true)) method = RequestMethod.POST }
options["headers"]?.let { headers -> options["headers"]?.let { headers ->
GSON.fromJsonObject<Map<String, String>>(headers)?.let { headerMap.putAll(it) } GSON.fromJsonObject<Map<String, String>>(headers)?.let { headerMap.putAll(it) }

Loading…
Cancel
Save