If a party brought before the court or judge on the return of the writ is not entitled to his discharge, and is not bailed, where such bail is allowable, the court or judge must demand him to custody or place him under the restraint from him which he was taken, if the person under whose custody or restraint he was is legally entitled thereto.
History —Code Crim. Proc., 1935, § 487.