HttpServer shouldn't default to chunked transfer-encoding for empty-bodied responses #27660
Labels
area-core-library
SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.
closed-stale
Closed as the issue or PR is assumed stale
library-io
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
Currently,
HttpServer
defaults to chunked transfer-encoding for all responses. This can corrupt some responses which don't allow a body, since the server will send a single0
as the body length. In particular, responses with status codes 204 and 304 require that no body exist, and writing the zero is breaking users' proxy servers in practice (see dart-lang/shelf#60).The text was updated successfully, but these errors were encountered: