Browse Source
Fixes gh-62 ### Notes The solution is based on ``` <dependency> <groupId>io.github.openfeign.form</groupId> <artifactId>feign-form-spring</artifactId> <version>3.3.0</version> </dependency> ``` Class `feign.form.spring.SpringFormEncoder` was added inside `org.springframework.cloud.openfeign.support.SpringEncoder` because it's doesn't has some checks: 1. Check of `bodyType` on null. `org.springframework.cloud.openfeign.support.SpringEncoder#encode` don't handle situation when `bodyType` is null. 2. No check for content type `multipart/form-data` in header. `feign.form.FormEncoder` requires `multipart/form-data` in header for proper processing. All this checks added and tests are passed.pull/69/head
4 changed files with 55 additions and 0 deletions
Loading…
Reference in new issue