agent: Copy token in KV PUT/DELETE

This commit is contained in:
Armon Dadgar 2014-08-14 19:34:50 -07:00
parent 9bababf872
commit 0ff28a12fa
1 changed files with 2 additions and 0 deletions

View File

@ -145,6 +145,7 @@ func (s *HTTPServer) KVSPut(resp http.ResponseWriter, req *http.Request, args *s
Value: nil,
},
}
applyReq.Token = args.Token
// Check for flags
params := req.URL.Query()
@ -215,6 +216,7 @@ func (s *HTTPServer) KVSDelete(resp http.ResponseWriter, req *http.Request, args
Key: args.Key,
},
}
applyReq.Token = args.Token
// Check for recurse
params := req.URL.Query()