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 <[email protected]>
AuthorDate: Mon Apr 8 14:12:09 2024 +0800

    [type: Refactor] remove duplicate path check (#5514)
    
    Co-authored-by: ray <[email protected]>
    Co-authored-by: xiaoyu <[email protected]>
---
 .../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)) {

Reply via email to