immutant

Clojure Immutant 2 server Undertow; how to handle http POST?

柔情痞子 提交于 2019-12-07 23:13:58
问题 Putting the following line into my compojure defroutes to use clojure-paypal-ipn calling the two handler functions. (POST "/paypal/ipn" [] (make-ipn-handler payment/paypal-data payment/paypal-error)) How do I handle a POST request within Immutant? I'm using Immutant 2.0 with Clojure 1.7-beta1 and building off the Immutant feature demo. Posting directly with cURL give these same results, although I'm trying to use PayPal IPN. 17:29:40.220 ERROR [io.undertow.request] (XNIO-1 task-1) Undertow

Clojure Immutant 2 server Undertow; how to handle http POST?

守給你的承諾、 提交于 2019-12-06 06:01:30
Putting the following line into my compojure defroutes to use clojure-paypal-ipn calling the two handler functions. (POST "/paypal/ipn" [] (make-ipn-handler payment/paypal-data payment/paypal-error)) How do I handle a POST request within Immutant? I'm using Immutant 2.0 with Clojure 1.7-beta1 and building off the Immutant feature demo. Posting directly with cURL give these same results, although I'm trying to use PayPal IPN. 17:29:40.220 ERROR [io.undertow.request] (XNIO-1 task-1) Undertow request failed HttpServerExchange{ POST /paypal/ipn} java.io.IOException: mark/reset not supported at