This should be simple, so I must be missing something basic. In my OWIN app, I want to have a catch-all that redirects to the homepage (index.html).
I see no way in the
public Task Invoke(IDictionary<string, object> environment)
method to return a response code.
Regarding the OWIN specification you have to set
environment["owin.ResponseStatusCode"] = 200;
See http://owin.org/spec/owin-1.0.0.html#_3.2._Environment
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With