mirror of https://github.com/status-im/consul.git
agnet: Fix parsing of cas flag
This commit is contained in:
parent
ceb6964547
commit
ca1c2d75b3
|
@ -87,7 +87,7 @@ func (s *HTTPServer) KVSPut(resp http.ResponseWriter, req *http.Request, args *s
|
||||||
|
|
||||||
// Check for cas value
|
// Check for cas value
|
||||||
if _, ok := params["cas"]; ok {
|
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 {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue