Section 1. Be it enacted by the Senate and House of Representatives of the United States of America in Congress assembled, That whenever the executive authority of any state in the Union, or of either of the territories northwest or south of the river Ohio, shall demand any person as a fugitive from justice, of the executive authority of any such state or territory to which such person shall have fled, and shall moreover produce the copy of an indictment found, or an affidavit made before a magistrate of any state or territory as aforesaid, charging the person so demanded, with having committed treason, felony or other crime, certified as authentic by the governor or chief magistrate of the state or territory from whence the person so charged fled, it shall be the duty of the executive authority of the state or territory to which such person shall have fled, to cause him or her to be arrested and secured, and notice of the arrest to be given to the executive authority making such demand, or to the agent of such authority appointed to receive the fugitive, and to cause the fugitive to be delivered to such agent when he shall appear: But if no such agent shall appear within six months from the time of the arrest, the prisoner may be discharged. And all costs or expenses incurred in the apprehending, securing, and transmitting such fugitive to the state or territory making such demand, shall be paid by such state or territory.