From d855f4a156a95fe8eaf8d7946db6aed55ebabf66 Mon Sep 17 00:00:00 2001 From: Matthias Nehlsen Date: Fri, 12 Sep 2014 19:33:03 +0200 Subject: Update compojure.html.markdown I think you meant different parameters for title and author --- compojure.html.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compojure.html.markdown') diff --git a/compojure.html.markdown b/compojure.html.markdown index 444c8c58..c5b03498 100644 --- a/compojure.html.markdown +++ b/compojure.html.markdown @@ -156,7 +156,7 @@ Now, your handlers may utilize query parameters: (defroutes myapp (GET "/posts" req (let [title (get (:params req) "title") - author (get (:params req) "title")] + author (get (:params req) "author")] (str "Title: " title ", Author: " author)))) ``` @@ -166,7 +166,7 @@ Or, for POST and PUT requests, form parameters as well (defroutes myapp (POST "/posts" req (let [title (get (:params req) "title") - author (get (:params req) "title")] + author (get (:params req) "author")] (str "Title: " title ", Author: " author)))) ``` -- cgit v1.2.3