fix multiple filemanager on one domain
Former-commit-id: ca54f9dfb1f6d927d9d45961e7c267cc61e5c74d
This commit is contained in:
		
							parent
							
								
									70aa887061
								
							
						
					
					
						commit
						ddeacd0f6e
					
				| 
						 | 
					@ -41,7 +41,7 @@ func (f FileManager) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, err
 | 
				
			||||||
	for i := range f.Configs {
 | 
						for i := range f.Configs {
 | 
				
			||||||
		// Checks if this Path should be handled by File Manager.
 | 
							// Checks if this Path should be handled by File Manager.
 | 
				
			||||||
		if !httpserver.Path(r.URL.Path).Matches(f.Configs[i].BaseURL) {
 | 
							if !httpserver.Path(r.URL.Path).Matches(f.Configs[i].BaseURL) {
 | 
				
			||||||
			return f.Next.ServeHTTP(w, r)
 | 
								continue
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		c = &f.Configs[i]
 | 
							c = &f.Configs[i]
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue