denro/faraday_middleware-multi_json — pull request #3 by dwbutler (2012-12-21 22:12:42+00:00)
Title: MultiJson encoding request middleware

For me, the *other* half of the puzzle of using MultiJson with Faraday was encoding the request as JSON. There's more to it than just calling MultiJson.dump on your request body - you still have to set the Content-Type headers and such.

This patch implements request middleware that uses MultiJson instead of JSON to encode the request. It simply reuses FaradayMiddleware::EncodeJson but uses MultiJson instead.

Let me know what you think!