Both http-kit
and ring.util.codec/form-encode
use an invalid (according
to some, Stripe included) way of form-encoding arrays. This ns is copy of the
aforementioned Ring implementation with a minor modification -- see line(s)
marked as such below.
see also: http://stackoverflow.com/questions/6243051/how-to-pass-an-array-within-a-query-string
Both `http-kit` and `ring.util.codec/form-encode` use an invalid (according to some, Stripe included) way of form-encoding arrays. This ns is copy of the aforementioned Ring implementation with a minor modification -- see line(s) marked as such below. see also: http://stackoverflow.com/questions/6243051/how-to-pass-an-array-within-a-query-string
(form-encode x & [encoding])
Encode the supplied value into www-form-urlencoded format, often used in URL query strings and POST request bodies, using the specified encoding. If the encoding is not specified, it defaults to UTF-8
Encode the supplied value into www-form-urlencoded format, often used in URL query strings and POST request bodies, using the specified encoding. If the encoding is not specified, it defaults to UTF-8
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close