headers('Location'); if (strpos($uri, '://') === FALSE) { // Make the URI into a URL $uri = URL::site($uri, TRUE, ! empty(Kohana::$index_file)); } $this->headers('Location', $uri); return $this; } /** * Validate this exception contains everything needed to continue. * * @throws Kohana_Exception * @return bool */ public function check() { if ($this->headers('location') === NULL) throw new Kohana_Exception('A \'location\' must be specified for a redirect'); return TRUE; } } // End Kohana_HTTP_Exception_Redirect