|
|
@ -188,10 +188,10 @@ class AnalyzeUrl( |
|
|
|
GSON.fromJsonObject<Map<String, String>>(headers) |
|
|
|
GSON.fromJsonObject<Map<String, String>>(headers) |
|
|
|
?.let { headerMap.putAll(it) } |
|
|
|
?.let { headerMap.putAll(it) } |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
headerMap[UA_NAME] ?: let { |
|
|
|
headerMap[UA_NAME] ?: let { |
|
|
|
headerMap[UA_NAME] = userAgent |
|
|
|
headerMap[UA_NAME] = userAgent |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
option.charset?.let { charset = it } |
|
|
|
option.charset?.let { charset = it } |
|
|
|
option.body?.let { |
|
|
|
option.body?.let { |
|
|
|
body = if (it is String) it else GSON.toJson(it) |
|
|
|
body = if (it is String) it else GSON.toJson(it) |
|
|
|