If such an arrest is made in obedience to a warrant, the disposition of the prisoner shall be as in other cases of arrest under a warrant; if the arrest is without a warrant, the prisoner shall without unnecessary delay be taken before a judge or magistrate of the county wherein such an arrest was made.