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

Update protocol spec: Clients and servers must not attempt to decompress zero-length HTTP content #92

Merged
merged 2 commits into from
Nov 1, 2023

Conversation

timostamm
Copy link
Member

An issue in Connect for Kotlin reports that a client errored on a response with a zero-length body and the header Content-Encoding: gzip.

While this should not be a common form, the fetch implementations in modern browsers accept it without error. For better interoperability, this updates the protocol specification to require clients and servers to accept this form: They must not attempt to decompress zero-length payloads.

Copy link

vercel bot commented Nov 1, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
connect ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 1, 2023 10:27am

@akshayjshah
Copy link
Member

Thank you, Timo!

@timostamm timostamm merged commit 9a77bc2 into main Nov 1, 2023
3 checks passed
@timostamm timostamm deleted the tstamm/do-not-attempt-to-decompress-zero-length branch November 1, 2023 16:54
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.

2 participants