Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed Phil's booboo. add-query-params now takes a map of query parame…

…ters. 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.
  • Loading branch information...
commit 540a8a9e08d2486dea35f3778fa8854608af0ade 1 parent 39dda13
@Raynes Raynes authored technomancy committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/clojure_http/client.clj
View
4 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]
Please sign in to comment.
Something went wrong with that request. Please try again.