summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLevi Bostian <levi.bostian@gmail.com>2014-09-12 13:14:38 -0500
committerLevi Bostian <levi.bostian@gmail.com>2014-09-12 13:14:38 -0500
commit6b63afa2ee7b8eac22d619dfb038ecb1480b9946 (patch)
tree588f95dba37bfd16662605b6109eec5860437742
parent814ac3d017d18bff1204e70de998aaef345e9058 (diff)
parentd855f4a156a95fe8eaf8d7946db6aed55ebabf66 (diff)
Merge pull request #761 from matthiasn/patch-1
Update 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 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))))
```