clojure-liberator/liberator — pull request #3 by james-henderson (2012-09-15 15:58:37+00:00)
Title: Re-instated the split between wrap-convert-suffix-to-accept-header and wrap-browser-safe-content-type

Fixed a bug with wrap-convert-suffix-to-accept-header that meant that any response that wasn't html/xhtml or xml was having it's Content-Type response header set to "text/plain". I've fixed this by splitting it into two middlewares, wrap-convert-suffix-to-accept-header and wrap-browser-safe-content-type (the latter makes it far more explicit that Liberator is changing response headers on your behalf)

I understand that there's currently a debate ongoing about whether either of these two middlewares belong in liberator - a good question!

Regardless of the outcome of this debate, the existing behaviour is a bit counter-intuitive and has caught me out more than once! So, in the meantime, I thought I'd re-apply this fix.

It's good to see the amount of development activity on this library at the moment, thanks!

James