KestrelHttpServer icon indicating copy to clipboard operation
KestrelHttpServer copied to clipboard

chunked transfer encoding response

Open srininz77 opened this issue 8 years ago • 2 comments

Why does Kestrel always add transfer-encoding: "chunked" response header? IIS doesn't do it. Is this by design or a bug?

srininz77 avatar Mar 23 '18 00:03 srininz77

By design. If the application doesn't specify a content-length then the server must either buffer the content or send it as chunked. ASP.NET Core servers do not buffer the full content. IIS has some buffering quirks with response compression, but otherwise it doesn't buffer responses either.

Tratcher avatar Mar 23 '18 05:03 Tratcher

Thanks

srininz77 avatar Mar 23 '18 07:03 srininz77