You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shenyu.apache.org by xi...@apache.org on 2024/04/08 06:12:15 UTC
(shenyu) branch master updated: [type: Refactor] remove duplicate path check (#5514)
This is an automated email from the ASF dual-hosted git repository.
xiaoyu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shenyu.git
The following commit(s) were added to refs/heads/master by this push:
new 4e1f8c2452 [type: Refactor] remove duplicate path check (#5514)
4e1f8c2452 is described below
commit 4e1f8c2452c30ca2df2a5408638eb994cd235873
Author: RayayChung <23...@qq.com>
AuthorDate: Mon Apr 8 14:12:09 2024 +0800
[type: Refactor] remove duplicate path check (#5514)
Co-authored-by: ray <zh...@ingbaobei.com>
Co-authored-by: xiaoyu <xi...@apache.org>
---
.../src/main/java/org/apache/shenyu/plugin/base/trie/ShenyuTrie.java | 3 ---
1 file changed, 3 deletions(-)
diff --git a/shenyu-plugin/shenyu-plugin-base/src/main/java/org/apache/shenyu/plugin/base/trie/ShenyuTrie.java b/shenyu-plugin/shenyu-plugin-base/src/main/java/org/apache/shenyu/plugin/base/trie/ShenyuTrie.java
index e7293d55c6..3445a0b03f 100644
--- a/shenyu-plugin/shenyu-plugin-base/src/main/java/org/apache/shenyu/plugin/base/trie/ShenyuTrie.java
+++ b/shenyu-plugin/shenyu-plugin-base/src/main/java/org/apache/shenyu/plugin/base/trie/ShenyuTrie.java
@@ -135,9 +135,6 @@ public class ShenyuTrie {
selectorData = (SelectorData) source;
node = keyRootMap.computeIfAbsent(selectorData.getPluginName(), key -> new ShenyuTrieNode("/", "/", false));
}
- if (TrieMatchModeEnum.PATH_PATTERN.equals(matchMode)) {
- checkLegalPath(uriPath, pathParts);
- }
for (int i = 0; i < pathParts.length; i++) {
node = putNode0(pathParts[i], node);
if (Objects.isNull(node)) {