Skip to content

Commit

Permalink
Do not decode URL encoding while setting up RequestTemplate (OpenFeig…
Browse files Browse the repository at this point in the history
  • Loading branch information
Breina committed Nov 8, 2023
1 parent 8002055 commit 6de864a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/feign/RequestTemplate.java
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ public RequestTemplate target(String target) {
}

/* strip the query string */
this.target = targetUri.getScheme() + "://" + targetUri.getAuthority() + targetUri.getPath();
this.target = targetUri.getScheme() + "://" + targetUri.getRawAuthority() + targetUri.getRawPath();
if (targetUri.getFragment() != null) {
this.fragment = "#" + targetUri.getFragment();
}
Expand Down

0 comments on commit 6de864a

Please sign in to comment.