Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Now expects string keys for parameters, rather than keywords

  • Loading branch information...
commit c6f9589ab438f6e217d416776ce639280e6cad40 1 parent 05fdace
@weavejester authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/compojure/core.clj
View
2  src/compojure/core.clj
@@ -41,7 +41,7 @@
"Create the bindings for a vector of parameters."
[request bindings body]
(let [[args [_ more]] (split-with #(not= % '&) bindings)]
- `(let [{:keys ~(vec args)} (~request :params)
+ `(let [{:strs ~(vec args)} (~request :params)
~@(if more [more `(dissoc (~request :params) ~@(map keyword args))])]
~@body)))
Please sign in to comment.
Something went wrong with that request. Please try again.