mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-11-28 13:31:27 +08:00
filer: readonly handle static resources
fix https://github.com/chrislusf/seaweedfs/issues/1641
This commit is contained in:
parent
6d30b21b10
commit
85554bea38
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user