Correction for commit #b219c6c

Issue: SPR-17630
This commit is contained in:
Rossen Stoyanchev
2019-01-08 22:43:42 -05:00
parent 4058361e84
commit dc3f953f4b
2 changed files with 6 additions and 1 deletions

View File

@@ -934,4 +934,9 @@ public class UriComponentsBuilderTests {
assertEquals("http://localhost:8081/{path}?sort={sort}&sort=another_value", uri);
}
@Test // SPR-17630
public void toUriStringWithCurlyBraces() {
assertEquals("/path?q=%7Basa%7Dasa",
UriComponentsBuilder.fromUriString("/path?q={asa}asa").toUriString());
}
}