Skip to content

Commit 1b111e7

Browse files
authored
Merge pull request #218 from gregolsky/v4.1
encode key in RemoveCompareExchangeCommand
2 parents 8c2f2d9 + bd64c8e commit 1b111e7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Documents/Operations/CompareExchange/DeleteCompareExchangeValueOperation.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ export class RemoveCompareExchangeCommand<T> extends RavenCommand<CompareExchang
5757
}
5858

5959
public createRequest(node: ServerNode): HttpRequestParameters {
60-
const uri = node.url + "/databases/" + node.database + "/cmpxchg?key=" + this._key + "&index=" + this._index;
60+
const uri = node.url + "/databases/" + node.database + "/cmpxchg?key=" + encodeURIComponent(this._key)
61+
+ "&index=" + this._index;
6162
return {
6263
method: "DELETE",
6364
uri

0 commit comments

Comments
 (0)