Skip to content

Commit 8c2f2d9

Browse files
authored
Merge pull request #217 from cabelitos/cmpext-fix
fix exceptions on PutCompareExchangeValueOperation
2 parents 3233120 + ad7aa81 commit 8c2f2d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Documents/Operations/CompareExchange/PutCompareExchangeValueOperation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export class PutCompareExchangeValueCommand<T> extends RavenCommand<CompareExcha
7272
}
7373

7474
public createRequest(node: ServerNode): HttpRequestParameters {
75-
const uri = node.url + "/databases/" + node.database + "/cmpxchg?key=" + this._key + "&index=" + this._index;
75+
const uri = node.url + "/databases/" + node.database + "/cmpxchg?key=" + encodeURIComponent(this._key) + "&index=" + this._index;
7676

7777
const tuple = {};
7878
tuple["Object"] = TypeUtil.isPrimitive(this._value)

0 commit comments

Comments
 (0)