fix(数据源): 去除空格

This commit is contained in:
taojinlong 2022-08-02 11:41:24 +08:00
parent 6995cfddc3
commit d2b481c002

View File

@ -142,7 +142,7 @@ public class ApiProvider extends Provider {
switch (apiDefinition.getMethod()) { switch (apiDefinition.getMethod()) {
case "GET": case "GET":
response = HttpClientUtil.get(apiDefinition.getUrl(), httpClientConfig); response = HttpClientUtil.get(apiDefinition.getUrl().trim(), httpClientConfig);
break; break;
case "POST": case "POST":
if (apiDefinitionRequest.getBody().get("type") == null) { if (apiDefinitionRequest.getBody().get("type") == null) {