6 Transmission of prisoners.

It shall be lawful for any officer of the law, when lawfully conveying any prisoner to any gaol or before any magistrate, to convey such prisoner through any county adjoining to that over which the magistrate possesses jurisdiction before whom such prisoner is to be carried for examination, or to that in which the gaol is situated to which such prisoner is to be committed, in the same way in all respects as if such officer had been an officer of the county through which he may so pass, and as if the warrant under which he is acting had been granted or indorsed by a magistrate of such county.