Set Content-Length header as some servers reject put/post requests which don't have one