filer: readonly handle static resources

fix https://github.com/chrislusf/seaweedfs/issues/1641
This commit is contained in:
Chris Lu 2020-11-27 13:42:14 -08:00
parent 6d30b21b10
commit 85554bea38

View file

@ -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)
}