You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feign mixes up header and request param values if they are of the same name #702
I have a service with the some header and request param with the same name. In such case the values of the request headers are mixed up with the values of the request parameters.
I would ask this question with the Spring folks. From your examples, you are using the Spring Cloud Open Feign annotations and not Feign core. I would check with them first.
I've looked into this some more and you are correct. In Feign a Param can reference a templated value in either a @Body, @Headers, or @RequestLine value.
I'm going to look into a possible long term solution for this, but to address your immediate issue, I recommend using different Header and Parameter template names.
Activity
kdavisk6 commentedon May 16, 2018
I would ask this question with the
Springfolks. From your examples, you are using theSpring Cloud Open Feignannotations and not Feign core. I would check with them first.kdavisk6 commentedon Jul 18, 2018
I've looked into this some more and you are correct. In
FeignaParamcan reference a templated value in either a@Body,@Headers, or@RequestLinevalue.I'm going to look into a possible long term solution for this, but to address your immediate issue, I recommend using different
HeaderandParametertemplate names.kdavisk6 commentedon Sep 23, 2018
Closed via #778 Documentation added to call out this scenario