This commit is contained in:
@@ -105,7 +105,9 @@ public final class HttpPrepareServlet extends PrepareServlet<String, HttpContext
|
||||
if (!ws.repair()) prefix = "";//被设置为自动追加前缀则清空prefix
|
||||
}
|
||||
}
|
||||
synchronized (mapStrings) {
|
||||
for (String mapping : mappings) {
|
||||
if(mapping == null) continue;
|
||||
if (!prefix.toString().isEmpty()) mapping = prefix + mapping;
|
||||
if (this.mapStrings.containsKey(mapping)) {
|
||||
Class old = this.mapStrings.get(mapping);
|
||||
@@ -134,6 +136,7 @@ public final class HttpPrepareServlet extends PrepareServlet<String, HttpContext
|
||||
servlet._prefix = prefix.toString();
|
||||
this.servlets.add(servlet);
|
||||
}
|
||||
}
|
||||
|
||||
private static boolean contains(String string, char... values) {
|
||||
if (string == null) return false;
|
||||
|
||||
Reference in New Issue
Block a user