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

Return error and status not content is empty #152

Merged
merged 2 commits into from
Feb 9, 2024

Conversation

ashmrtn
Copy link
Contributor

@ashmrtn ashmrtn commented Feb 8, 2024

Fix issue where unsuccessful responses with no content would return a "content is empty" error from various serialization libraries instead of information about the status code.

Add a regression test for this as well.

Fix issue where 4XX and 5XX responses with no content would return a
"content is empty" error instead of information about the status code.

Add a regression test for this as well.
Copy link
Member

@andrueastman andrueastman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this @ashmrtn

Any chance you update the changelog as well?

@baywet
Copy link
Member

baywet commented Feb 9, 2024

To provide more context over Andrew's comment:

  • changelog entry new patch version, date to today, change listed under the changes section.
  • the product version also needs to be aligned.
    Thanks a lot for the contribution!

Copy link
Member

@baywet baywet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for making the updates!

@baywet baywet enabled auto-merge February 9, 2024 16:48
@baywet baywet merged commit 07ce92f into microsoft:main Feb 9, 2024
7 checks passed
@baywet baywet linked an issue Feb 28, 2024 that may be closed by this pull request
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.

No HTTP status code information returned if response body is empty
3 participants