correct way to test if HTTP_CONTENT_RANGE is in self.request
update of sanitize_name function