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

Commit 373ae65

Browse files
committed
response fixed for redirect for psr7
1 parent abbd348 commit 373ae65

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Foundation/Response.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,9 @@ public function getResponse() : array
210210
{
211211
$headers = $this->config['headers'] ?? null;
212212
$this->setHeaders($headers);
213+
if ($this->redirect !== null) {
214+
$this->headers['Location'] = $this->redirect;
215+
}
213216
return [
214217
'statusCode' => $this->statusCode,
215218
'headers' => $this->headers,

0 commit comments

Comments
 (0)