Skip to content

Commit

Permalink
Merge pull request #218 from gregolsky/v4.1
Browse files Browse the repository at this point in the history
encode key in RemoveCompareExchangeCommand
  • Loading branch information
gregolsky authored Apr 9, 2020
2 parents 8c2f2d9 + bd64c8e commit 1b111e7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ export class RemoveCompareExchangeCommand<T> extends RavenCommand<CompareExchang
}

public createRequest(node: ServerNode): HttpRequestParameters {
const uri = node.url + "/databases/" + node.database + "/cmpxchg?key=" + this._key + "&index=" + this._index;
const uri = node.url + "/databases/" + node.database + "/cmpxchg?key=" + encodeURIComponent(this._key)
+ "&index=" + this._index;
return {
method: "DELETE",
uri
Expand Down

0 comments on commit 1b111e7

Please sign in to comment.