Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

MVC should write content length by default (on IIS) #972

Closed
danroth27 opened this issue Aug 12, 2014 · 2 comments
Closed

MVC should write content length by default (on IIS) #972

danroth27 opened this issue Aug 12, 2014 · 2 comments

Comments

@danroth27
Copy link
Member

Currently MVC responses use chunked encoding by default. This is a bit hard on clients and it also makes for poor error handling when an exception occurs during writing the response content. By default MVC responses should probably be buffered and then have a way to opt into chunked encoding as needed.

@yishaigalatzer
Copy link
Contributor

Fixed by #1074

@yishaigalatzer yishaigalatzer changed the title MVC should buffer responses by default MVC should write content length by default (on IIS) Oct 6, 2014
@yishaigalatzer
Copy link
Contributor

The fix here is to make sure the stream writer doesn't flush the stream upon closing it.
The content length header is generated by IIS and not by MVC.

It is expected that the web listener (self host) will still write chunked results.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants