From 467e218387348053a732a3c430ca601d9754b38f Mon Sep 17 00:00:00 2001 From: Mehmet Korkmaz Date: Thu, 14 Mar 2019 14:02:52 +0300 Subject: [PATCH] redirect issue fixed --- src/ControllerResponse.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ControllerResponse.php b/src/ControllerResponse.php index af114fb..3d151fe 100644 --- a/src/ControllerResponse.php +++ b/src/ControllerResponse.php @@ -79,7 +79,7 @@ public static function XML(int $statusCode, array $xmlData, ?array $headers=[]) public static function REDIRECT(int $statusCode, string $redirectUrl) : self { return (new self(Router::REDIRECT, $statusCode, [])) - ->withHeaders(['uri' => $redirectUrl]); + ->withMetaData(['uri' => $redirectUrl]); } public static function DOWNLOAD(int $statusCode, string $filePath, ?string $fileName = null) : self