File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -102,20 +102,14 @@ impl Viss for Server {
102102 metadata,
103103 } ) ) ;
104104 } else if let Some ( Filter :: Paths ( paths_filter) ) = & request. filter {
105+ let request_path = request. path . as_ref ( ) ;
105106 if request. path . as_ref ( ) . contains ( '*' ) {
106107 return Err ( GetErrorResponse {
107108 request_id,
108109 ts : SystemTime :: now ( ) . into ( ) ,
109110 error : Error :: NotFoundInvalidPath ,
110111 } ) ;
111112 }
112- for path in & paths_filter. parameter {
113- let new_path = format ! ( "{}{}" , request. path. clone( ) . as_ref( ) , path) ;
114- if let Ok ( matcher) = Matcher :: new ( & new_path) {
115- request_matcher. push ( ( matcher, request. path . clone ( ) . into ( ) , false ) ) ;
116- }
117- }
118- }
119113
120114 let permissions = resolve_permissions ( & self . authorization , & request. authorization )
121115 . map_err ( |error| GetErrorResponse {
You can’t perform that action at this time.
0 commit comments