fix path encode

This commit is contained in:
Looly 2021-03-28 14:30:12 +08:00
parent 8d28db0e94
commit 4c74a7defc

View File

@ -128,7 +128,7 @@ public class UrlPath {
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);