Skip to content

Commit 1f91b0e

Browse files
authored
Do not decode URL encoding while setting up RequestTemplate
Fix #2227
1 parent 8002055 commit 1f91b0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ public RequestTemplate target(String target) {
518518
}
519519

520520
/* strip the query string */
521-
this.target = targetUri.getScheme() + "://" + targetUri.getAuthority() + targetUri.getPath();
521+
this.target = targetUri.getScheme() + "://" + targetUri.getRawAuthority() + targetUri.getRawPath();
522522
if (targetUri.getFragment() != null) {
523523
this.fragment = "#" + targetUri.getFragment();
524524
}

0 commit comments

Comments
 (0)