Polishing contribution

Closes gh-33181
This commit is contained in:
rstoyanchev 2024-07-15 15:21:19 +01:00
parent 2fe7ab1f92
commit 77bdbf7e37
1 changed files with 4 additions and 2 deletions

View File

@ -274,14 +274,16 @@ public class CorsConfiguration {
case ']' -> withinPortRange = false; case ']' -> withinPortRange = false;
case ',' -> { case ',' -> {
if (!withinPortRange) { if (!withinPortRange) {
valueConsumer.accept(rawValue.substring(start, current).trim()); String originValue = rawValue.substring(start, current).trim();
valueConsumer.accept(originValue);
start = current + 1; start = current + 1;
} }
} }
} }
} }
if (start < rawValue.length()) { if (start < rawValue.length()) {
valueConsumer.accept(rawValue.substring(start).trim()); String originValue = rawValue.substring(start).trim();
valueConsumer.accept(originValue);
} }
} }