From d79b5e8139991040af70921dc9feaeff4004d79c Mon Sep 17 00:00:00 2001 From: Xwite <1797350009@qq.com> Date: Sat, 7 May 2022 09:27:15 +0800 Subject: [PATCH] refactor:remove duplicated pollyfill --- .../main/java/io/legado/app/model/analyzeRule/AnalyzeUrl.kt | 3 --- 1 file changed, 3 deletions(-) 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 fd005ff70..0b4c5d6de 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 @@ -192,9 +192,6 @@ class AnalyzeUrl( } } } - headerMap[UA_NAME] ?: let { - headerMap[UA_NAME] = AppConfig.userAgent - } urlNoQuery = url when (method) { RequestMethod.GET -> {