Minor refactoring in DefaultPathContainer
Closes gh-27204
This commit is contained in:
parent
af67764edb
commit
460947651a
|
|
@ -165,10 +165,10 @@ final class DefaultPathContainer implements PathContainer {
|
||||||
int index = input.indexOf('=');
|
int index = input.indexOf('=');
|
||||||
if (index != -1) {
|
if (index != -1) {
|
||||||
String name = input.substring(0, index);
|
String name = input.substring(0, index);
|
||||||
String value = input.substring(index + 1);
|
name = StringUtils.uriDecode(name, charset);
|
||||||
for (String v : StringUtils.commaDelimitedListToStringArray(value)) {
|
if (StringUtils.hasText(name)) {
|
||||||
name = StringUtils.uriDecode(name, charset);
|
String value = input.substring(index + 1);
|
||||||
if (StringUtils.hasText(name)) {
|
for (String v : StringUtils.commaDelimitedListToStringArray(value)) {
|
||||||
output.add(name, StringUtils.uriDecode(v, charset));
|
output.add(name, StringUtils.uriDecode(v, charset));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue