File tree Expand file tree Collapse file tree 1 file changed +11
-12
lines changed
oauth2-server-hexagon/src/main/java/nl/myndocs/oauth2/hexagon/request Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -13,18 +13,17 @@ class HexagonCallContext(val call: Call) : CallContext {
1313 .mapValues { it.value.joinToString(" ;" ) }
1414
1515 override val queryParameters: Map <String , String > = (call.request
16- .runCatching { queryString }
17- .getOrNull() ? : " " )
18- .split(" &" )
19- .filter { it.contains(" =" ) }
20- .map {
21- val (key, value) = it.split(" =" )
22- Pair (
23- key.toLowerCase(),
24- URLDecoder .decode(value, StandardCharsets .UTF_8 .name())
25- )
26- }
27- .toMap()
16+ .runCatching { queryString }
17+ .getOrNull() ? : " " )
18+ .split(" &" )
19+ .filter { it.contains(" =" ) }
20+ .associate {
21+ val (key, value) = it.split(" =" )
22+ Pair (
23+ key.toLowerCase(),
24+ URLDecoder .decode(value, StandardCharsets .UTF_8 .name())
25+ )
26+ }
2827
2928 override val formParameters: Map <String , String > = call.parameters
3029 .mapValues { it.value.lastOrNull() }
You can’t perform that action at this time.
0 commit comments