Skip to content

Commit

Permalink
urlencoder deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
turingtestfail committed Jun 18, 2024
1 parent 11953d5 commit 06d1d18
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
import java.text.SimpleDateFormat;
import java.util.AbstractMap;
import java.util.ArrayList;
Expand Down Expand Up @@ -2111,9 +2112,11 @@ private Map<String, Object> getMapRequestElementsToModel(
request.getKvp().entrySet().stream()
.map(
p ->
URLEncoder.encode(p.getKey())
URLEncoder.encode(p.getKey(), StandardCharsets.UTF_8)
+ "="
+ URLEncoder.encode(p.getValue().toString()))
+ URLEncoder.encode(
p.getValue().toString(),
StandardCharsets.UTF_8))
.reduce((p1, p2) -> p1 + "&" + p2)
.orElse("");
String path = request.getPath();
Expand Down

0 comments on commit 06d1d18

Please sign in to comment.