diff --git a/backend/src/main/java/io/metersphere/api/parse/ApiImportAbstractParser.java b/backend/src/main/java/io/metersphere/api/parse/ApiImportAbstractParser.java index 3ac7f6cf4f..957303a401 100644 --- a/backend/src/main/java/io/metersphere/api/parse/ApiImportAbstractParser.java +++ b/backend/src/main/java/io/metersphere/api/parse/ApiImportAbstractParser.java @@ -161,6 +161,7 @@ public abstract class ApiImportAbstractParser implements ApiImportParser { request.setHeaders(new ArrayList<>()); request.setArguments(new ArrayList<>()); request.setRest(new ArrayList<>()); + request.setFollowRedirects(true); Body body = new Body(); body.initKvs(); body.initBinary(); diff --git a/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java b/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java index b87a104bbe..d6f0465d24 100644 --- a/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java +++ b/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java @@ -1473,7 +1473,6 @@ public class ApiDefinitionService { model.setId(exiteModelList.get(0).getId()); esbApiParamsMapper.updateByPrimaryKeyWithBLOBs(model); } - } }