filer: readonly handle static resources
fix https://github.com/chrislusf/seaweedfs/issues/1641
This commit is contained in:
@@ -126,6 +126,7 @@ func NewFilerServer(defaultMux, readonlyMux *http.ServeMux, option *FilerOption)
|
||||
defaultMux.HandleFunc("/", fs.filerHandler)
|
||||
}
|
||||
if defaultMux != readonlyMux {
|
||||
handleStaticResources(readonlyMux)
|
||||
readonlyMux.HandleFunc("/", fs.readonlyFilerHandler)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user