Fork me on GitHub
#reitit
<
2019-12-17
>
danielcompton02:12:49

Often nil is equivalent to {:status 404} in Ring, except if you have further middleware which adds headers to the response

danielcompton02:12:02

Then, a map with headers but no status is implicitly treated as 200

ikitommi05:12:30

@danielcompton not 100% sure, but the latter one is for cases where the handler is mounted inside the routing tree and the path (and method) have already matched. You actually might want to return "file not found". The first one is when it's mounted outside of the route tree, and it might be good idea to pass it on to next, e.g. redirect-trailing-slash-handler

ikitommi05:12:56

but, is kinda inconsistent and/or not documented. Any fix would be breaking, so for 1.0.0. Ideas welcome