This commit is contained in:
lidaoyang 2020-01-10 17:38:21 +08:00
parent ac502b305b
commit 848b1b1349

View File

@ -78,7 +78,9 @@ public class DistroFilter implements Filter {
if (StringUtils.isBlank(serviceName)) { if (StringUtils.isBlank(serviceName)) {
serviceName = req.getParameter("dom"); serviceName = req.getParameter("dom");
} }
serviceName = serviceName.trim(); if (StringUtils.isNotBlank(serviceName)) {
serviceName = serviceName.trim();
}
Method method = filterBase.getMethod(req.getMethod(), path); Method method = filterBase.getMethod(req.getMethod(), path);
if (method == null) { if (method == null) {