Skip to content

Commit 6d483fb

Browse files
committed
Do not force response code
1 parent df83d83 commit 6d483fb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Response.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -524,11 +524,10 @@ protected function sendHeaders() : void
524524
$this->negotiateEtag();
525525
}
526526
$this->negotiateCsp();
527-
$code = $this->getStatusCode();
527+
\header($this->getStartLine());
528528
$replace = $this->isReplacingHeaders();
529-
\header($this->getStartLine(), true, $code);
530529
foreach ($this->getHeaderLines() as $line) {
531-
\header($line, $replace, $code);
530+
\header($line, $replace);
532531
}
533532
$this->headersSent = true;
534533
}

0 commit comments

Comments
 (0)