Fix issue3635 (#3948)

* fixed Feign template

* regenerated Feign example

* update java feign petstore sample
This commit is contained in:
Davide Maestroni
2019-09-27 10:36:04 +02:00
committed by William Cheng
parent 2664c628a3
commit 5f6e53fc60
3 changed files with 3 additions and 3 deletions

View File

@@ -77,7 +77,7 @@ public final class EncodingUtils {
return null;
}
try {
return URLEncoder.encode(parameter.toString(), "UTF-8");
return URLEncoder.encode(parameter.toString(), "UTF-8").replaceAll("\\+", "%20");
} catch (UnsupportedEncodingException e) {
// Should never happen, UTF-8 is always supported
throw new RuntimeException(e);