From 540a8a9e08d2486dea35f3778fa8854608af0ade Mon Sep 17 00:00:00 2001 From: Raynes Date: Tue, 8 Jun 2010 23:27:15 -0500 Subject: [PATCH] Fixed Phil's booboo. add-query-params now takes a map of query parameters. Reason being, you can't simply apply a map of parameters, so if you had a map, you'd have to make it something applyable to add-query-params. I think a map "feels better" for this problem anyway. --- src/clojure_http/client.clj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/clojure_http/client.clj b/src/clojure_http/client.clj index 53b104e..41742af 100644 --- a/src/clojure_http/client.clj +++ b/src/clojure_http/client.clj @@ -106,8 +106,8 @@ by a server." cookie-map))) (defn add-query-params - "Takes a URL and query params and returns a URL with query params attached." - [url & query-params] + "Takes a URL and a map of query params and returns a URL with query params attached." + [url query-params] (if (seq query-params) (apply str url "?" (interpose "&" (for [[k v] query-params]