cch1 / http.async.client

Async Http Client - Clojure
http://cch1.github.com/http.async.client
267 stars 40 forks source link

Doesn't support multiple values with the same key being submitted #22

Closed sbowman closed 12 years ago

sbowman commented 13 years ago

It would be nice if the requests could support an array as the value for a parameter, or support a sequence of pairs, so that we could submit more than one value for the same key. Right now, the value of any parameter is (str v), so the only way to sent multiple values for the same key is by converting it to a form-url-encoded string first by hand.

For example:

(client/GET client "http://localhost" :query {:many ["valuea", "valueb", "valuec"]})

Should submit something like:

http://localhost?many=valuea&many=valueb&many=valuec

The clj-apache-http library supports this notation, as well as a sequence of pairs.

neotyk commented 12 years ago

Please checkout branch issue-22, this should fix your issue. https://github.com/neotyk/http.async.client/commits/issue-22

neotyk commented 12 years ago

Merged to development