Skip to content

Commit ce66205

Browse files
authored
Removed Duplicate Expansion (OpenFeign#909)
Fixes OpenFeign#904 Query Template expanded twice. This is unnecessary and would have caused a performance issue at scale.
1 parent 6b8ed38 commit ce66205

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/src/main/java/feign/RequestTemplate.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ public RequestTemplate resolve(Map<String, ?> variables) {
167167
QueryTemplate queryTemplate = queryTemplates.next();
168168
String queryExpanded = queryTemplate.expand(variables);
169169
if (Util.isNotBlank(queryExpanded)) {
170-
query.append(queryTemplate.expand(variables));
170+
query.append(queryExpanded);
171171
if (queryTemplates.hasNext()) {
172172
query.append("&");
173173
}

0 commit comments

Comments
 (0)