A special case of two-component polytropes with rigid rotation