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

Don't error when 204 is returned with a content-type. #418

Merged
merged 1 commit into from
Jan 6, 2022

Conversation

evert
Copy link
Collaborator

@evert evert commented Jan 6, 2022

Fixes #414.

Many servers will return a Content-Type for 204 responses, even though
this is probably incorrect, but at least meaningless.

This fix ensures that we're not attempting to parse the response body
if a 204 is returned.

Fixes #414.

Many servers will return a `Content-Type` for 204 responses, even though
this is probably incorrect, but at least meaningless.

This fix ensures that we're not attempting to parse the response body
if a 204 is returned.
@evert evert added the bug label Jan 6, 2022
@evert evert requested a review from pschwyter January 6, 2022 20:19
@evert evert self-assigned this Jan 6, 2022
Copy link

@pschwyter pschwyter left a comment

Choose a reason for hiding this comment

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

nice

@evert evert merged commit 3121974 into main Jan 6, 2022
@evert evert deleted the handle-204-for-actions branch January 6, 2022 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HAL Action attempts to read empty response body on HTTP 204
2 participants