braintree/braintree_ruby — pull request #29 by biilmann (2012-09-24 20:06:24+00:00)
Title: Set Content-Length header on empty post/put bodys

I've been working on getting fake_braintree to work with WEBrick instead
of Thin for JRuby compatibility. WEBrick won't accept POST or PUT
requests without a Content-Length header and the Braintree client were
creating those in some cases.

This commit makes the Braintree client use "" instead of nil as an
argument to Net::HTTP::Post and Net::HTTP::Put since this triggers makes
Net::HTTP add the Content-Length header.