Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

Commit

Permalink
redirect issue fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
mkorkmaz committed Mar 14, 2019
1 parent 941559a commit 467e218
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ControllerResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 467e218

Please sign in to comment.