UriComponentsBuilder.cloneBuilder copies uriVariables

Closes gh-24772
This commit is contained in:
Rossen Stoyanchev
2020-03-26 16:22:04 +00:00
parent 818d18aa09
commit ef013f7158
2 changed files with 33 additions and 1 deletions

View File

@@ -152,6 +152,7 @@ public class UriComponentsBuilder implements UriBuilder, Cloneable {
this.host = other.host;
this.port = other.port;
this.pathBuilder = other.pathBuilder.cloneBuilder();
this.uriVariables.putAll(other.uriVariables);
this.queryParams.putAll(other.queryParams);
this.fragment = other.fragment;
this.encodeTemplate = other.encodeTemplate;