public NetCoreResponse(NetCoreRequest request, HttpResponse response) { this.request = request; this.response = response; this.Items = new Dictionary <string, object>(); this.Cookies = new NetCoreCookies(response); response.StatusCode = 200; }
public NetCoreResponse(NetCoreRequest request, HttpResponse response) { this.request = request; this.response = response; this.Items = new Dictionary <string, object>(); this.Cookies = HostContext.AppHost.GetCookies(this); //Don't set StatusCode here as it disables Redirects from working in MVC //response.StatusCode = 200; }