summaryrefslogtreecommitdiffhomepage
path: root/compojure.html.markdown
diff options
context:
space:
mode:
Diffstat (limited to 'compojure.html.markdown')
-rw-r--r--compojure.html.markdown4
1 files changed, 2 insertions, 2 deletions
diff --git a/compojure.html.markdown b/compojure.html.markdown
index af97a147..36a8d123 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))))
```