|
|
@ -309,7 +309,7 @@ class AnalyzeUrl( |
|
|
|
} |
|
|
|
} |
|
|
|
return when (method) { |
|
|
|
return when (method) { |
|
|
|
RequestMethod.POST -> { |
|
|
|
RequestMethod.POST -> { |
|
|
|
if (fieldMap.isNotEmpty()) { |
|
|
|
if (fieldMap.isNotEmpty() || body.isNullOrBlank()) { |
|
|
|
RxHttp.postForm(url) |
|
|
|
RxHttp.postForm(url) |
|
|
|
.setAssemblyEnabled(false) |
|
|
|
.setAssemblyEnabled(false) |
|
|
|
.setOkClient(HttpHelper.getProxyClient(proxy)) |
|
|
|
.setOkClient(HttpHelper.getProxyClient(proxy)) |
|
|
@ -338,7 +338,7 @@ class AnalyzeUrl( |
|
|
|
setCookie(tag) |
|
|
|
setCookie(tag) |
|
|
|
return when (method) { |
|
|
|
return when (method) { |
|
|
|
RequestMethod.POST -> { |
|
|
|
RequestMethod.POST -> { |
|
|
|
if (fieldMap.isNotEmpty()) { |
|
|
|
if (fieldMap.isNotEmpty() || body.isNullOrBlank()) { |
|
|
|
RxHttp.postForm(url) |
|
|
|
RxHttp.postForm(url) |
|
|
|
.setAssemblyEnabled(false) |
|
|
|
.setAssemblyEnabled(false) |
|
|
|
.setOkClient(HttpHelper.getProxyClient(proxy)) |
|
|
|
.setOkClient(HttpHelper.getProxyClient(proxy)) |
|
|
|