From 4e4a68b11a8677a36c434ba317db3ce58b1076c1 Mon Sep 17 00:00:00 2001 From: Jianguo-Genius Date: Mon, 18 Nov 2024 17:22:46 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E5=9C=BA=E6=99=AF=E5=AF=BC=E5=85=A5har=E5=BF=BD=E7=95=A5svg?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E8=8E=B7=E5=8F=96url?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/parser/api/dataimport/HarParserApiScenario.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/parser/api/dataimport/HarParserApiScenario.java b/backend/services/api-test/src/main/java/io/metersphere/api/parser/api/dataimport/HarParserApiScenario.java index a5429894ab..20d84343d2 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/parser/api/dataimport/HarParserApiScenario.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/parser/api/dataimport/HarParserApiScenario.java @@ -80,7 +80,7 @@ public class HarParserApiScenario implements ApiScenarioImportParser { HarRequest harRequest = entry.request; if (harRequest != null) { // css 、 js 略过 - if (StringUtils.equalsIgnoreCase(harRequest.method, HttpMethodConstants.GET.name()) && StringUtils.endsWithAny(harRequest.url.toLowerCase(), ".css", ".js", ".png", ".jpg", ".jpeg")) { + if (StringUtils.equalsIgnoreCase(harRequest.method, HttpMethodConstants.GET.name()) && StringUtils.endsWithAny(harRequest.url.toLowerCase(), ".svg", ".css", ".js", ".png", ".jpg", ".jpeg")) { continue; } String url = harRequest.url;