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