fix(AnalyzeUrl): skip analyze when mUrl is DataURL
This commit is contained in:
@@ -72,7 +72,6 @@ class AnalyzeUrl(
|
|||||||
private val enabledCookieJar = source?.enabledCookieJar ?: false
|
private val enabledCookieJar = source?.enabledCookieJar ?: false
|
||||||
|
|
||||||
init {
|
init {
|
||||||
if (!mUrl.isDataUrl()) {
|
|
||||||
val urlMatcher = paramPattern.matcher(baseUrl)
|
val urlMatcher = paramPattern.matcher(baseUrl)
|
||||||
if (urlMatcher.find()) baseUrl = baseUrl.substring(0, urlMatcher.start())
|
if (urlMatcher.find()) baseUrl = baseUrl.substring(0, urlMatcher.start())
|
||||||
(headerMapF ?: source?.getHeaderMap(true))?.let {
|
(headerMapF ?: source?.getHeaderMap(true))?.let {
|
||||||
@@ -84,7 +83,6 @@ class AnalyzeUrl(
|
|||||||
}
|
}
|
||||||
initUrl()
|
initUrl()
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 处理url
|
* 处理url
|
||||||
|
|||||||
Reference in New Issue
Block a user