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

Commit

Permalink
response fixed for redirect for psr7
Browse files Browse the repository at this point in the history
  • Loading branch information
mkorkmaz committed Jul 24, 2018
1 parent abbd348 commit 373ae65
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Foundation/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,9 @@ public function getResponse() : array
{
$headers = $this->config['headers'] ?? null;
$this->setHeaders($headers);
if ($this->redirect !== null) {
$this->headers['Location'] = $this->redirect;
}
return [
'statusCode' => $this->statusCode,
'headers' => $this->headers,
Expand Down

0 comments on commit 373ae65

Please sign in to comment.