【发布时间】:2015-02-12 19:48:21
【问题描述】:
我的代码很简单:
(def form-test
"<html><body><form action=\"/\" method=\"POST\"><input type=\"text\" name=\"ss\"/><input type=\"submit\" value=\"submit\"/></form></body></html>")
(defroutes app-routes
(GET "/" [] form-test)
(POST "/" req (str "the req: " req))
(route/resources "/")
(route/not-found "Not Found"))
(def app
(handler/site app-routes))
每当我在本地机器上尝试我的应用程序时,它都能正常工作,我可以看到请求参数,但是当我将相同的东西部署到 heroku 时,请求参数总是空的......这是怎么回事?
【问题讨论】:
-
没有太多信息可以找出问题的根源。是否存在可供人们重现此行为的公共存储库?
-
链接到您的 Heroku 应用怎么样?