forked from loafle/openapi-generator-original
ISSUE-11242: Fix Java native path param encoding (#11257)
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user