If from the examination before the judge it appears that the person held is the person charged with having committed the crime alleged and, except in cases arising under section 3806 of this title, that he has fled from justice, the judge must, by a warrant reciting the accusation, commit him to jail for such a time not exceeding thirty days and specified in the warrant, as will enable the arrest of the accused to be made under a warrant of the Governor on a requisition of the Executive Authority of the state having jurisdiction of the offense, unless the accused give bail as provided in section 3816 of this title, or until he shall be legally discharged.