PUT method required Content-Length header while requested through proxy server

Content-Length header required while requested through proxy server, e.g. nginx, otherwise "411 Length Required" returned. It is better to set zero Content-Length on PUT request to avoid it.