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: handle HTTP status 205 properly #163

Open
wants to merge 2 commits into
base: trunk
Choose a base branch
from
Open

fix: handle HTTP status 205 properly #163

wants to merge 2 commits into from

Conversation

nobe4
Copy link
Contributor

@nobe4 nobe4 commented May 19, 2024

As discussed in #161, this might be one other fix for supporting empty bodies from the server.

The test is a POC, and should probably be refactored into something better.

nobe4 added 2 commits May 19, 2024 21:26
A 205 must not return any content, so DoWithContext should handle this
case and not fail when trying to parse the JSON.

Ref: https://httpwg.org/specs/rfc9110.html#status.205
@nobe4 nobe4 marked this pull request as draft May 19, 2024 19:28
@nobe4 nobe4 marked this pull request as ready for review May 20, 2024 12:10
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.

1 participant