OpenFeign / OpenFeign/feign

@Headers({"Content-Type: application/json"}) failed when request with POST method

Open
#2,641 3 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.