mirror of
https://github.com/status-im/consul.git
synced 2025-01-11 06:16:08 +00:00
agent: Copy token in KV PUT/DELETE
This commit is contained in:
parent
9bababf872
commit
0ff28a12fa
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user