From de6e1442d7ae1266bdd29a099376fe255cd35eda Mon Sep 17 00:00:00 2001 From: "chris.lu@gmail.com" Date: Sat, 30 Jun 2012 09:14:51 +0000 Subject: [PATCH] also return publicUrl when assigning the fid git-svn-id: https://weed-fs.googlecode.com/svn/trunk@48 282b0af5-e82d-9cf1-ede4-77906d7719d0 --- weed-fs/src/cmd/weedmaster/weedmaster.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed-fs/src/cmd/weedmaster/weedmaster.go b/weed-fs/src/cmd/weedmaster/weedmaster.go index bf548f5ba..15f46197f 100644 --- a/weed-fs/src/cmd/weedmaster/weedmaster.go +++ b/weed-fs/src/cmd/weedmaster/weedmaster.go @@ -39,7 +39,7 @@ func dirLookupHandler(w http.ResponseWriter, r *http.Request) { func dirAssignHandler(w http.ResponseWriter, r *http.Request) { fid, machine, err := mapper.PickForWrite() if err == nil { - writeJson(w, r, map[string]string{"fid": fid, "url": machine.Url}) + writeJson(w, r, map[string]string{"fid": fid, "url": machine.Url, "publicUrl":machine.PublicUrl}) } else { log.Println(err) writeJson(w, r, map[string]string{"error": err.Error()})