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.