From ca1c2d75b3152b55fcfcb40c049a3ebe586c7c3f Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Mon, 31 Mar 2014 20:00:30 -0700 Subject: [PATCH] agnet: Fix parsing of cas flag --- command/agent/kvs_endpoint.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/agent/kvs_endpoint.go b/command/agent/kvs_endpoint.go index 5ce9ce205f..af97aa5c16 100644 --- a/command/agent/kvs_endpoint.go +++ b/command/agent/kvs_endpoint.go @@ -87,7 +87,7 @@ func (s *HTTPServer) KVSPut(resp http.ResponseWriter, req *http.Request, args *s // Check for cas value if _, ok := params["cas"]; ok { - casVal, err := strconv.ParseUint(params.Get("flags"), 10, 64) + casVal, err := strconv.ParseUint(params.Get("cas"), 10, 64) if err != nil { return nil, err }