Browse Source

refactor:remove duplicated pollyfill

Xwite 4 years ago
parent
commit
3f2410f456
1 changed files with 0 additions and 3 deletions
  1. 0 3
      app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeUrl.kt

+ 0 - 3
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
         urlNoQuery = url
         when (method) {
         when (method) {
             RequestMethod.GET -> {
             RequestMethod.GET -> {