@Headers({"Content-Type: application/json"}) failed when request with POST method
Open
Nobody has claimed this yet.
needs info
question
- Dominant language
- Java
- Stars
- 9.8k
- Forks
- 1.9k
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 41
Description
feign-core:10.2.3
micronaut-core:3.10.1
When I used @Header to set Content-Type param in header , it failed. The logs showed that request has no this param. But when I set other param ,for example: ContenType: application/json, it was OK . It has any filter in this version?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the POST request described with feign-core 10.2.3 and micronaut-core 3.10.1, comparing the Content-Type header with the alternate header name that works. Trace the request header handling and verify that the declared Content-Type is preserved in the resulting request.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 45/100