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)
Merge pull request #6 from Astro03/master

Added correct Content Length to POST request