Greetings,

I'm trying to get the body of HTTP POST in Compojure (0.5.3). 

I have the following code:
  (defn handle-post [body]
    (log/info (.read body))
    "OK")

  (defroutes tropo-routes
    (GET "/" [] (welcome-page))
    (POST "/post" {body :body} (handle-post body))
    (route/not-found "Sorry, can't find it."))

When I send the server a POST request, -1 is logged (which means not input 
available).

Any ideas how to do it right?

Thanks,
--
Miki

-- 
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

Reply via email to