On 19/02/2015 16:20, Sam Ritchie wrote:
Try adding
:allowed-methods [:get :post]
to your resource.
You'll want to use "ANY" for all liberator routes, since they manage the
responses for incorrect content types internally. If you specify GET or
POST, it's up to you to return the proper responses if the methods
aren't supported (since Compojure will return nil and try to match
further down your list of routes.
OK, will use ANY. Still puzzled, though, as to why "Method not allowed"
was returned when I clearly specifed POST.
gvim
--
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.