feat POST-create unique node under given path

This commit is contained in:
Xiang Li
2013-10-15 22:21:55 -07:00
parent 01bbad31c7
commit baa683b484
3 changed files with 14 additions and 14 deletions

View File

@@ -19,10 +19,10 @@ func PostHandler(w http.ResponseWriter, req *http.Request, s Server) error {
}
c := &store.CreateCommand{
Key: key,
Value: value,
ExpireTime: expireTime,
IncrementalSuffix: (req.FormValue("incremental") == "true"),
Key: key,
Value: value,
ExpireTime: expireTime,
Unique: true,
}
return s.Dispatch(c, w, req)