Skip to content

Loading…

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

Closed
sbowman opened this Issue · 2 comments

2 participants

@sbowman

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
Collaborator

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

@neotyk
Collaborator

Merged to development

@neotyk neotyk closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.