We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 745ca79 commit 71602f2Copy full SHA for 71602f2
src/Http/Response.php
@@ -66,8 +66,7 @@ public function setCode($code)
66
}
67
self::checkHeaders();
68
$this->code = $code;
69
- $protocol = isset($_SERVER['SERVER_PROTOCOL']) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.1';
70
- header($protocol . ' ' . $code, TRUE, $code);
+ http_response_code($code);
71
return $this;
72
73
0 commit comments