dakrone/clj-http — pull request #36 by ghoseb (2012-01-23 07:46:45+00:00)
Title: `generate-query-string` doesn't encode sequential values properly

Sometimes one needs to supply multiple values to a single parameter in a POST request. Currently if a vector is provided in the query map it's incorrectly encoded as is.

The attached patch fixes the problem.

Example -

user> (generate-query-string {:to ["a@b.com", "c@d.com"], :from "e@g.com"})
;=> "from=e%40g.com&to=%5B%22a%40b.com%22+%22c%40d.com%22%5D"
;; after fix
user> (generate-query-string {:to ["a@b.com", "c@d.com"], :from "e@g.com"})
;=> "from=e%40g.com&to=a%40b.com&to=c%40d.com"