ruby/ruby — pull request #200 by gregors (2012-10-21 20:07:52+00:00)
Title: set content-length to zero on empty post requests

It is bad form to not set the content-length header on empty post requests. This will most likely end with a 411 response from the server. Sometimes post requests will be empty e.g. the initial request during a challenge-response authentication scenario.