Skip to content

Commit

Permalink
Merge pull request #33 from dedad0/master
Browse files Browse the repository at this point in the history
Fixed issue #23
  • Loading branch information
dilab authored May 24, 2021
2 parents 1518157 + 240d4a9 commit eeb8298
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 eeb8298

Please sign in to comment.