mirror of
https://github.com/metosin/reitit.git
synced 2025-12-16 16:01:11 +00:00
query is a form-param
This commit is contained in:
parent
077a1887cb
commit
bf3fb64088
2 changed files with 3 additions and 3 deletions
|
|
@ -256,9 +256,9 @@
|
|||
[params]
|
||||
(->> params
|
||||
(map (fn [[k v]]
|
||||
(str (url-encode (into-string k))
|
||||
(str (form-encode (into-string k))
|
||||
"="
|
||||
(url-encode (into-string v)))))
|
||||
(form-encode (into-string v)))))
|
||||
(str/join "&")))
|
||||
|
||||
(defmacro goog-extend [type base-type ctor & methods]
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@
|
|||
{:a 1} "a=1"
|
||||
{:a nil} "a="
|
||||
{:a :b :c "d"} "a=b&c=d"
|
||||
{:a "b c"} "a=b%20c"))
|
||||
{:a "b c"} "a=b+c"))
|
||||
|
||||
; TODO: support seq values?
|
||||
;{:a ["b" "c"]} "a=b&a=c"
|
||||
|
|
|
|||
Loading…
Reference in a new issue