add dir list limit option

This commit is contained in:
Chris Lu
2018-07-07 02:18:47 -07:00
parent 2ad45ca04f
commit 702ff48cda
6 changed files with 38 additions and 35 deletions

View File

@@ -65,11 +65,11 @@ func (fs *FilerServer) PostHandler(w http.ResponseWriter, r *http.Request) {
query := r.URL.Query()
replication := query.Get("replication")
if replication == "" {
replication = fs.defaultReplication
replication = fs.option.DefaultReplication
}
collection := query.Get("collection")
if collection == "" {
collection = fs.collection
collection = fs.option.Collection
}
if autoChunked := fs.autoChunk(w, r, replication, collection); autoChunked {