silverstripe/sapphire — pull request #1235 by matt-bliss (2013-02-26 05:47:16+00:00)
Title: Content-Length Fix

Currently when doing a dev/build there is no "body" and cannot determine a Content-Length.

This fix first determines whether there is content in $this->body before appending the header.