feign icon indicating copy to clipboard operation
feign copied to clipboard

URLEncode string parameters

Open jerry4 opened this issue 11 years ago • 3 comments

I'm not sure if I'm missing something, but why doesn't feign url encode string parameters automatically? eg:

@RequestLine("GET /{someString}")
String foo(@Param("someString") String someString)

It seems like feign should automatically encode the string for me, but instead I get a 404 calling host/foo/some/str proxy.foo("some/str");

Thanks, Jerry

jerry4 avatar May 20 '15 20:05 jerry4

How did u solve this issue?

NitishDeshpande avatar May 10 '17 07:05 NitishDeshpande

@jerry4 why closing?

NZhuravlev avatar Jun 23 '17 14:06 NZhuravlev

may this link helps https://stackoverflow.com/questions/43889140/feign-url-encode-path-params

tony-cui avatar Aug 28 '18 05:08 tony-cui