add missing content length for PUT requests with empty bodys
add tests