fix precedence for content_length or 0