Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: load content into buffer for void return methods #1293

Merged
merged 1 commit into from
Jan 25, 2022
Merged

fix: load content into buffer for void return methods #1293

merged 1 commit into from
Jan 25, 2022

Conversation

lotz
Copy link
Contributor

@lotz lotz commented Jan 21, 2022

What kind of change does this PR introduce?

It fixes another code path related to the bug detailed in #1099.

What is the current behavior?

When a Refit interface method returns Task rather than Task<T>, the [Body(buffered: true)] attribute is ignored.

What is the new behavior?

Now void return interface methods will correctly buffer body content when specified in the Refit interface method signature.

What might this PR break?

It could break how POST/PUT bodies are serialized in requests.

Please check if the PR fulfills these requirements

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features) -- I believe the docs are already correct for how to use buffered: true.

Other information:

@dnfadmin
Copy link

dnfadmin commented Jan 21, 2022

CLA assistant check
All CLA requirements met.

@clairernovotny
Copy link
Member

@lotz can you please sign the CLA by using the link in the previous comment so we can accept this PR?

@lotz
Copy link
Contributor Author

lotz commented Jan 25, 2022

Yep, apologies for the delay. I am just checking the CLA language with my company's legal dept. Shouldn't be too much longer. Thanks!

@lotz
Copy link
Contributor Author

lotz commented Jan 25, 2022

@clairernovotny all good, CLA signed.

@clairernovotny clairernovotny merged commit 637182e into reactiveui:main Jan 25, 2022
@lotz lotz deleted the fix-buffered-json-for-all-code-paths branch January 25, 2022 16:34
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants