Use a different separator in `Wid`

`#` is a reserved character in the URL spec and must be escaped to be used. This change uses `-` instead.

Fixes: elastic/elasticsearch#467

Original commit: elastic/x-pack-elasticsearch@a75eb89cb8
This commit is contained in:
Brian Murphy 2015-05-12 17:26:28 -04:00
parent a59e157ca3
commit f14fe49dfa
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ public class Wid {
public Wid(String watchId, long nonce, DateTime executionTime) {
this.watchId = watchId;
this.value = watchId + "_" + String.valueOf(nonce) + "#" + formatter.print(executionTime);
this.value = watchId + "_" + String.valueOf(nonce) + "-" + formatter.print(executionTime);
}
public Wid(String value) {