Added correct Content Length to POST request

If there post content was empty, we were not setting the content length
to 0 (for some reason it was initialized to -1)