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 1518157 commit 240d4a9Copy full SHA for 240d4a9
src/Network/SimpleResponse.php
@@ -12,11 +12,11 @@ class SimpleResponse implements Response
12
public function header($statusCode)
13
{
14
if (200==$statusCode) {
15
- return header("HTTP/1.0 200 Ok");
+ return header($_SERVER["SERVER_PROTOCOL"]." 200 Ok");
16
} else if (404==$statusCode) {
17
- return header("HTTP/1.0 404 Not Found");
+ return header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
18
}
19
- return header("HTTP/1.0 204 No Content");
+ return header($_SERVER["SERVER_PROTOCOL"]." 204 No Content");
20
21
22
0 commit comments