From b52e12ca56238479c15f4fe06e3b82f7c12d5678 Mon Sep 17 00:00:00 2001 From: Jianguo-Genius Date: Fri, 22 Nov 2024 10:43:17 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20Ha?= =?UTF-8?q?r=E5=AF=BC=E5=85=A5=E5=9C=BA=E6=99=AF=E6=97=B6=E6=8E=92?= =?UTF-8?q?=E9=99=A4gif=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/parser/api/dataimport/HarParserApiScenario.java | 3 ++- 1 file changed, 2 insertions(+), 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 0159eb8370..13d30e2eea 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 @@ -81,7 +81,8 @@ 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(), ".svg", ".css", ".js", ".png", ".jpg", ".jpeg")) { + if (StringUtils.equalsIgnoreCase(harRequest.method, HttpMethodConstants.GET.name()) && + StringUtils.endsWithAny(harRequest.url.toLowerCase(), ".svg", ".css", ".js", ".png", ".jpg", ".jpeg", ".gif")) { continue; } String url = harRequest.url;