fix(接口测试): 场景导入har忽略svg文件获取url

This commit is contained in:
Jianguo-Genius 2024-11-18 17:22:46 +08:00 committed by Craftsman
parent 04f428d061
commit 4e4a68b11a
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ public class HarParserApiScenario implements ApiScenarioImportParser {
HarRequest harRequest = entry.request; HarRequest harRequest = entry.request;
if (harRequest != null) { if (harRequest != null) {
// css js 略过 // 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; continue;
} }
String url = harRequest.url; String url = harRequest.url;