Skip to content

Commit b566290

Browse files
authored
Fixed issue: 'Fatal error with unofficial http status codes' (#34)
1 parent e276d90 commit b566290

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Response.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ public function sendHeaders(): Response
451451
Headers::set($this->headers);
452452

453453
// status
454-
header(sprintf('%s %s %s', $this->httpVersion(), $this->status, Status::$statusTexts[$this->status]), true, $this->status);
454+
header(sprintf('%s %s %s', $this->httpVersion(), $this->status, Status::$statusTexts[$this->status] ?? ''), true, $this->status);
455455

456456
return $this;
457457
}

0 commit comments

Comments
 (0)