From aa0f9755a499cc7b50c4c611a29e6f138df1e8bb Mon Sep 17 00:00:00 2001 From: zhangdahai112 Date: Wed, 15 Jun 2022 10:08:12 +0800 Subject: [PATCH] =?UTF-8?q?fix(UI=20=E8=87=AA=E5=8A=A8=E5=8C=96):=20idea?= =?UTF-8?q?=20=E6=8F=92=E4=BB=B6=E5=AF=BC=E5=85=A5=E4=B8=8D=E8=83=BD?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=8A=B6=E6=80=81=E7=A0=81=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1013969 --user=张大海 【idea插件】idea插件导入的接口,响应内容状态码不能添加 https://www.tapd.cn/55049933/s/1181977 --- .../io/metersphere/api/parse/PostmanAbstractParserParser.java | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/src/main/java/io/metersphere/api/parse/PostmanAbstractParserParser.java b/backend/src/main/java/io/metersphere/api/parse/PostmanAbstractParserParser.java index 74678addc1..d133df1d57 100644 --- a/backend/src/main/java/io/metersphere/api/parse/PostmanAbstractParserParser.java +++ b/backend/src/main/java/io/metersphere/api/parse/PostmanAbstractParserParser.java @@ -80,6 +80,7 @@ public abstract class PostmanAbstractParserParser extends ApiImportAbstractPa addBodyHeader(request); HttpResponse response = new HttpResponse(); BeanUtils.copyBean(response, request); + response.setStatusCode(new ArrayList<>()); response.setType("HTTP"); return response; }