properly set content length for no-body requests