From 27c31bf0c0c3262755d30da746388748bc3e76fd Mon Sep 17 00:00:00 2001 From: Xwite <1797350009@qq.com> Date: Sun, 10 Apr 2022 18:26:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:java.ajax=20=E6=AD=A3=E6=96=87=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E7=9A=84=E7=BC=BA=E7=9C=81headers=E7=9A=84=E4=BC=98?= =?UTF-8?q?=E5=85=88=E7=BA=A7:=E4=B9=A6=E6=BA=90>=E5=85=A8=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeUrl.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeUrl.kt b/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeUrl.kt index c14543cc8..cc0d64a39 100644 --- a/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeUrl.kt +++ b/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeUrl.kt @@ -73,7 +73,7 @@ class AnalyzeUrl( init { val urlMatcher = paramPattern.matcher(baseUrl) if (urlMatcher.find()) baseUrl = baseUrl.substring(0, urlMatcher.start()) - headerMapF?.let { + (headerMapF ?: source?.getHeaderMap(true))?.let { headerMap.putAll(it) if (it.containsKey("proxy")) { proxy = it["proxy"]