Fix for Post without content body throwing 411: Length required

Following this lead: https://github.com/dotcloud/docker/issues/307

I was able to work around this bugfix also for #7