diff options
| author | yanyiwu <i@yanyiwu.com> | 2015-01-06 19:31:26 +0800 |
|---|---|---|
| committer | yanyiwu <i@yanyiwu.com> | 2015-01-06 19:31:26 +0800 |
| commit | 0b192917f824e90ff7e9fc35080973f96c04fb45 (patch) | |
| tree | 91164daba2a1de57898d93c4b160456a5ec880c7 /go | |
| parent | 7471bccb9bd0705725c838b867f3edde72ab082d (diff) | |
| download | seaweedfs-0b192917f824e90ff7e9fc35080973f96c04fb45.tar.xz seaweedfs-0b192917f824e90ff7e9fc35080973f96c04fb45.zip | |
fix bug about the collection in volume is wrong when curl -F "file=@/tmp/test.jpg" "localhost:9333/submit?collection=picture"
Diffstat (limited to 'go')
| -rw-r--r-- | go/weed/weed_server/common.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/go/weed/weed_server/common.go b/go/weed/weed_server/common.go index 5c782c091..38d58bdbb 100644 --- a/go/weed/weed_server/common.go +++ b/go/weed/weed_server/common.go @@ -87,6 +87,7 @@ func submitForClientHandler(w http.ResponseWriter, r *http.Request, masterUrl st } debug("assigning file id for", fname) + r.ParseForm() assignResult, ae := operation.Assign(masterUrl, 1, r.FormValue("replication"), r.FormValue("collection"), r.FormValue("ttl")) if ae != nil { writeJsonError(w, r, ae) |
