Added support for json in body for POST and PUT. #52

merged 1 commit into from Mar 14, 2012


None yet
2 participants

sharat87 commented Mar 13, 2012

Currently body content is always encoded as query-params, and :content-type always set to the associated value for that.

This patch will support json, while query-params is still the default. If :content-type is set to :json, then :form-params is turned to a json string and set as the :body.

PS - I'm not sure of the indentation and coding style that you prefer, so you may want to refactor/rewrite this as you see fit.


@dakrone dakrone merged commit 35aa879 into dakrone:master Mar 14, 2012


dakrone commented Mar 14, 2012

Merged, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment