more robust filer

This commit is contained in:
Chris Lu
2014-03-30 13:26:44 -07:00
parent 2861275fb6
commit 51fafdb525
4 changed files with 59 additions and 7 deletions

View File

@@ -221,6 +221,9 @@ func (vs *VolumeServer) PostHandler(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusInternalServerError)
m["error"] = errorStatus
}
if needle.HasName() {
m["name"] = string(needle.Name)
}
m["size"] = ret
writeJsonQuiet(w, r, m)
}