My understanding is that compojure concerns itself mostly with routing and does not try (anymore?) to handle response maps.
Concerning ring.util.response, I think these functions are meant to be threaded: (-> (not-found "oh noes") (content-type "text")) On Wednesday, 24 February 2016, Torsten Uhlmann <torsten.uhlm...@gmail.com> wrote: > Thanks Gary! > > I haven't touched the middleware stack for a while, and I only found out > about this thing when testing my routes for security. > But, if response maps are supposed to be left alone, how is > ring.util.response supposed to work, for instance the "not-found" function: > > (defn not-found > "Returns a 404 'not found' response." > {:added "1.1"} > [body] > {:status 404 > :headers {} > :body body}) > > > They all return an empty header. > I guess it's not something (not accepting the response if content type is > missing?) that has changed in Chrome or Firefox over the last few month? > > But then, the compojure wiki's example for a map also manually adds the > content-type: > https://github.com/weavejester/compojure/wiki/Routes-In-Detail > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > <javascript:_e(%7B%7D,'cvml','clojure@googlegroups.com');> > Note that posts from new members are moderated - please be patient with > your first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > <javascript:_e(%7B%7D,'cvml','clojure%2bunsubscr...@googlegroups.com');> > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com > <javascript:_e(%7B%7D,'cvml','clojure%2bunsubscr...@googlegroups.com');>. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.