cmiles74 / bishop

A Webmachine-like library for Clojure
Other
95 stars 10 forks source link

Updated to not handle 404s #22

Closed russpitre closed 10 years ago

russpitre commented 10 years ago

IMHO Bishop should not return 404 when a resource isn't found but rather return nil which is more Ring compatible.

cmiles74 commented 10 years ago

I'm torn on this one, the spec for Webmachine requires the 404 response if the resource isn't found. I can see where you're coming from, Clojure functions typically return nil if the item isn't available. I will make this a configurable option, that should make everyone happy.

Thank you!