* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ class MWP_Http_RedirectResponse extends MWP_Http_Response { public function __construct($url, $statusCode = 302, array $headers = array()) { $headers['location'] = $url; parent::__construct($url, $statusCode, $headers); } public function getContentAsString() { return sprintf(' Redirecting to %1$s Redirecting to %1$s. ', htmlspecialchars($this->content, ENT_QUOTES, 'UTF-8')); } }