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

View File

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