Skip to content

Commit

Permalink
Merge branch 'v1.1' of github.com:fit2cloudrd/metersphere-server into…
Browse files Browse the repository at this point in the history
… v1.1
  • Loading branch information
liuruibin committed Jul 22, 2020
2 parents 59cd84e + af03676 commit 2e05128
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/src/main/java/io/metersphere/api/parse/MsParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import com.alibaba.fastjson.JSONObject;
import io.metersphere.api.dto.ApiTestImportRequest;
import io.metersphere.api.dto.parse.ApiImport;
import io.metersphere.api.dto.scenario.request.RequestType;
import io.metersphere.commons.constants.MsRequestBodyType;
import org.apache.commons.lang3.StringUtils;
import org.eclipse.jetty.http.HttpMethod;
Expand Down Expand Up @@ -38,6 +39,7 @@ private String parsePluginFormat(String testStr) {
requestsObject.keySet().forEach(requestName -> {
JSONObject requestObject = requestsObject.getJSONObject(requestName);
requestObject.put("name", requestName);
requestObject.put("type", RequestType.HTTP);
JSONArray bodies = requestObject.getJSONArray("body");
if (StringUtils.equalsIgnoreCase(requestObject.getString("method"), HttpMethod.POST.name()) && bodies != null) {
StringBuilder bodyStr = new StringBuilder();
Expand Down

0 comments on commit 2e05128

Please sign in to comment.