From fce04cc4444429e8e1ae2cebb7189f32b937872f Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Fri, 1 Jul 2022 18:31:45 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20s?= =?UTF-8?q?wagger=E5=92=8Char=E9=87=8D=E5=AE=9A=E5=90=91=E9=BB=98=E8=AE=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --user=郭雨琦 --bug=1014465 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001014465 --- .../java/io/metersphere/api/parse/ApiImportAbstractParser.java | 1 + .../java/io/metersphere/api/service/ApiDefinitionService.java | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) 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); } - } }