mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-03 08:46:55 +00:00
fix(java): plus url encoding (#15539)
This commit is contained in:
@@ -83,7 +83,7 @@ public class ApiClient {
|
||||
* @return URL-encoded representation of the input string.
|
||||
*/
|
||||
public static String urlEncode(String s) {
|
||||
return URLEncoder.encode(s, UTF_8).replaceAll("\\+", "%20");
|
||||
return URLEncoder.encode(s, UTF_8).replaceAll("\\+", "%2B");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user