mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-07-17 03:22:37 +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)
|
defaultMux.HandleFunc("/", fs.filerHandler)
|
||||||
}
|
}
|
||||||
if defaultMux != readonlyMux {
|
if defaultMux != readonlyMux {
|
||||||
|
handleStaticResources(readonlyMux)
|
||||||
readonlyMux.HandleFunc("/", fs.readonlyFilerHandler)
|
readonlyMux.HandleFunc("/", fs.readonlyFilerHandler)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user