Skip to content

Commit

Permalink
Fixed issue #23
Browse files Browse the repository at this point in the history
  • Loading branch information
nyan1337 committed May 24, 2021
1 parent 1518157 commit 240d4a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Network/SimpleResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ class SimpleResponse implements Response
public function header($statusCode)
{
if (200==$statusCode) {
return header("HTTP/1.0 200 Ok");
return header($_SERVER["SERVER_PROTOCOL"]." 200 Ok");
} else if (404==$statusCode) {
return header("HTTP/1.0 404 Not Found");
return header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
}
return header("HTTP/1.0 204 No Content");
return header($_SERVER["SERVER_PROTOCOL"]." 204 No Content");
}

}

0 comments on commit 240d4a9

Please sign in to comment.