scottoffen / grapevine-legacy

Embedding A REST Server In Your Application Should Be Simple
http://scottoffen.github.io/grapevine-legacy/
Apache License 2.0
209 stars 50 forks source link

Fixes test RouterFacts\SendsInternalServerErrorResponseWhenExceptionThrown #194

Closed Khubajsn closed 5 years ago

Khubajsn commented 6 years ago

Exceptions caught in Router.Route(Object) do result in a SendResponse call, but with an invalid status code of 0, due to what looks like an accidental swap in the ternary if.

scottoffen commented 5 years ago

We fixed this in another branch, but thanks for the catch!