headers('Location'); $this->headers('Location', $uri); return $this; } /** * Validate this exception contains everything needed to continue. * * @throws Kohana_Exception * @return bool */ public function check() { if ($location = $this->headers('location') === NULL) throw new Kohana_Exception('A \'location\' must be specified for a redirect'); if (strpos($location, '://') === FALSE) throw new Kohana_Exception('An absolute URI to the proxy server must be specified'); return TRUE; } }