Skip to content

Ignore/close body for no entity body status codes.#23

Merged
ioquatix merged 1 commit intomainfrom
handle-no-entity-body-status-codes
Apr 29, 2025
Merged

Ignore/close body for no entity body status codes.#23
ioquatix merged 1 commit intomainfrom
handle-no-entity-body-status-codes

Conversation

@ioquatix
Copy link
Copy Markdown
Member

@ioquatix ioquatix commented Apr 29, 2025

Rack applications sometimes incorrectly return non-empty bodies for status codes which should not have an entity body. In those cases, we close and ignore the body (and warn if appropriate).

If we don't do this, we may incorrectly send a response body causing the remote end to give up, resulting in EPIPE: socketry/falcon#289.

Types of Changes

  • Bug fix.
  • New feature.

Contribution

@ioquatix ioquatix force-pushed the handle-no-entity-body-status-codes branch from 35ab964 to 33589e6 Compare April 29, 2025 06:59
@ioquatix ioquatix merged commit 2980e16 into main Apr 29, 2025
68 of 76 checks passed
@ioquatix ioquatix deleted the handle-no-entity-body-status-codes branch April 29, 2025 07:13
@ioquatix ioquatix added this to the v0.12.0 milestone Apr 29, 2025
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