Skip to content

Commit 6e5e47f

Browse files
committed
fix: patch up status
1 parent 21cfbfe commit 6e5e47f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Response.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,8 @@ public function redirect(string $url, int $status = 302)
227227
*/
228228
public function status($code = null)
229229
{
230-
Headers::resetStatus($code);
230+
$this->status = $code;
231+
Headers::status($code);
231232
return $this;
232233
}
233234

0 commit comments

Comments
 (0)