ISSUE-11242: Fix Java native path param encoding (#11257)

This commit is contained in:
Sorin Florea
2022-01-10 15:23:28 +02:00
committed by GitHub
parent d813d04f46
commit a4325ec520
5 changed files with 71 additions and 4 deletions

View File

@@ -81,7 +81,7 @@ public class ApiClient {
* @return URL-encoded representation of the input string.
*/
public static String urlEncode(String s) {
return URLEncoder.encode(s, UTF_8);
return URLEncoder.encode(s, UTF_8).replaceAll("\\+", "%20");
}
/**