mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-11-29 18:48:13 +08:00
fix(接口测试): Har导入场景时排除gif路径
This commit is contained in:
parent
69b8c07ec7
commit
b52e12ca56
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user