Permalink
Browse files

* src/clojure_http/client.clj: Url encode query parameters.

  • Loading branch information...
1 parent 6684ffc commit 677a48de1f3bb9433227fbb126b376b4b27ac30d @Raynes Raynes committed May 28, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/clojure_http/client.clj
View
2 src/clojure_http/client.clj
@@ -109,7 +109,7 @@ by a server."
"Takes a map of query parameters and turns them into a query string."
[url query-map]
(if (seq query-map)
- (apply str url "?" (interpose "&" (for [[k v] query-map] (str k "=" v))))
+ (apply str url "?" (interpose "&" (for [[k v] query-map] (str (url-encode k) "=" (url-encode v)))))
url))
(defn request

0 comments on commit 677a48d

Please sign in to comment.