Skip to content

Update to improve protocol handling for HTTP responses with no body #113

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

Merged
merged 1 commit into from
Feb 4, 2022

Conversation

clue
Copy link
Owner

@clue clue commented Feb 4, 2022

This changeset updates the HTTP component for the built-in web server to improve protocol handling for HTTP responses with no body.

In particular, we no longer include a misleading Content-Length: 0 response header for 304 Not Modified response when using the built-in web server. Likewise, you can now explicitly define the optional Content-Length response header for 304 Not Modified response when using the built-in web server. In other words, the behavior is now more consistent across all web server implementations.

Builds on top of #51 and refs reactphp/http#429 and reactphp/http#430

@clue clue added bug Something isn't working new feature New feature or request labels Feb 4, 2022
@clue clue requested a review from SimonFrings February 4, 2022 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working new feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants