Skip to content

Commit

Permalink
adding more tests to properly address #15
Browse files Browse the repository at this point in the history
  • Loading branch information
dcarbone committed May 14, 2018
1 parent 07387cc commit 3ec6a2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/KV/KVClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ public function keys($prefix = null, QueryOptions $options = null) {
* )
*/
public function cas(KVPair $p, WriteOptions $options = null) {
$r = new Request('PUT', sprintf('v1/kv/%s', $p->Key), $this->config);
$r = new Request('PUT', sprintf('v1/kv/%s', $p->Key), $this->config, $p->Value);
$r->setWriteOptions($options);
$r->Params->set('cas', (string)$p->ModifyIndex);
if (0 !== $p->Flags) {
Expand Down

0 comments on commit 3ec6a2f

Please sign in to comment.