Skip to content

Add the Content-Type if specified, unless we are setting the body#569

Merged
codefromthecrypt merged 2 commits into
OpenFeign:masterfrom
DavidTanner:addContentType
Jul 18, 2017
Merged

Add the Content-Type if specified, unless we are setting the body#569
codefromthecrypt merged 2 commits into
OpenFeign:masterfrom
DavidTanner:addContentType

Conversation

@DavidTanner

Copy link
Copy Markdown
Contributor

Fixes #391
If we specify the Content-Type we should send it, even without a body.

The Apache client does the same.
https://github.com/OpenFeign/feign/blob/release-9.5.0/httpclient/src/main/java/feign/httpclient/ApacheHttpClient.java#L127-L129

@DavidTanner

Copy link
Copy Markdown
Contributor Author

@adriancole Is there any chance this might be approved?

@codefromthecrypt

Copy link
Copy Markdown

SGTM Add to CHANGES file for the next minor version?

@DavidTanner

Copy link
Copy Markdown
Contributor Author

@adriancole done. Thanks!

@codefromthecrypt
codefromthecrypt merged commit e70bb4f into OpenFeign:master Jul 18, 2017
@DavidTanner
DavidTanner deleted the addContentType branch July 18, 2017 14:42
@DavidTanner

Copy link
Copy Markdown
Contributor Author

@adriancole when are you planning the next release?

@DavidTanner

Copy link
Copy Markdown
Contributor Author

@adriancole Is there something I need to do to get this released?

phymbert pushed a commit to phymbert/feign that referenced this pull request Aug 22, 2017
…enFeign#569)

* Add the Content-Type if specified, unless we are setting the body

* Update changelog
velo pushed a commit that referenced this pull request Oct 7, 2024
* Add the Content-Type if specified, unless we are setting the body

* Update changelog
velo pushed a commit that referenced this pull request Oct 8, 2024
* Add the Content-Type if specified, unless we are setting the body

* Update changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants