Skip to content

Commit 240d4a9

Browse files
committed
Fixed issue dilab#23
1 parent 1518157 commit 240d4a9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Network/SimpleResponse.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ class SimpleResponse implements Response
1212
public function header($statusCode)
1313
{
1414
if (200==$statusCode) {
15-
return header("HTTP/1.0 200 Ok");
15+
return header($_SERVER["SERVER_PROTOCOL"]." 200 Ok");
1616
} else if (404==$statusCode) {
17-
return header("HTTP/1.0 404 Not Found");
17+
return header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
1818
}
19-
return header("HTTP/1.0 204 No Content");
19+
return header($_SERVER["SERVER_PROTOCOL"]." 204 No Content");
2020
}
2121

2222
}

0 commit comments

Comments
 (0)