Skip to content

Commit

Permalink
fix path encode
Browse files Browse the repository at this point in the history
  • Loading branch information
looly committed Mar 28, 2021
1 parent 8d28db0 commit 4c74a7d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public String build(Charset charset) {

final StringBuilder builder = new StringBuilder();
for (String segment : segments) {
builder.append(CharUtil.SLASH).append(URLUtil.encodeQuery(segment, charset));
builder.append(CharUtil.SLASH).append(URLUtil.encode(segment, charset));
}
if (withEngTag || StrUtil.isEmpty(builder)) {
builder.append(CharUtil.SLASH);
Expand Down

0 comments on commit 4c74a7d

Please sign in to comment.