Skip to content

Set empty HttpEntity if request body is null.#511

Closed
Infeligo wants to merge 1 commit into
OpenFeign:masterfrom
Infeligo:httpclient-post-empty-body
Closed

Set empty HttpEntity if request body is null.#511
Infeligo wants to merge 1 commit into
OpenFeign:masterfrom
Infeligo:httpclient-post-empty-body

Conversation

@Infeligo

Copy link
Copy Markdown

This fixes the issue I raised in #510 where Feign did not account for Apache HttpClient behaviour difference in case HttpEntity was not set at all (e.g. due to null body in this case). This resulted in RequestBuilder creating HttpEntity from query parameters.

Otherwise RequestBuilder will create HttpEntity from query parameters.
@spencergibb

Copy link
Copy Markdown
Contributor

restarting build

@codefromthecrypt

Copy link
Copy Markdown

test?

@codefromthecrypt

Copy link
Copy Markdown

closing until interest resumes (specifically adding a test)

jonfreedman added a commit to jonfreedman/feign that referenced this pull request May 9, 2017
@jonfreedman

jonfreedman commented May 9, 2017

Copy link
Copy Markdown
Contributor

I've created a failing test, I introduced a test scope dependency on feign-jaxrs from feign-httpclient as that's specifically how we're using this, you may be able to re-write the test to simplify it.

Github's links are are a bit confused, here's the PR: #557

@codefromthecrypt

Copy link
Copy Markdown

thanks! closed via 431b328

phymbert pushed a commit to phymbert/feign that referenced this pull request Aug 22, 2017
velo pushed a commit that referenced this pull request Oct 7, 2024
velo pushed a commit that referenced this pull request Oct 8, 2024
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.

4 participants