Add Content-Length header to PUT requests

Solves issue #19 .