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

Response allows setting StatusCode and ReasonPhrase after response was started #805

Closed
Tratcher opened this issue May 5, 2016 · 0 comments
Assignees
Milestone

Comments

@Tratcher
Copy link
Member

Tratcher commented May 5, 2016

From @pakrym on May 5, 2016 21:36

This works:

await context.Response.WriteAsync("Hello");
context.Response.StatusCode = 2;

It should prevent setting status code the same way Headers, Cookies, ContentType do.

/cc @Tratcher

Copied from original issue: aspnet/HttpAbstractions#626

@muratg muratg added this to the 1.0.0 milestone May 9, 2016
cesarblum pushed a commit that referenced this issue May 24, 2016
cesarblum pushed a commit that referenced this issue May 24, 2016
cesarblum pushed a commit that referenced this issue May 24, 2016
@cesarblum cesarblum changed the title Response allows setting StatusCode after body was started Response allows setting StatusCode and ReasonPhrase after response was started May 24, 2016
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

3 participants