From 240d4a99e8e8f0dde90db76886f0b0916e31a2fa Mon Sep 17 00:00:00 2001 From: dedad0 <68032172+dedad0@users.noreply.github.com> Date: Mon, 24 May 2021 08:49:26 +0200 Subject: [PATCH] Fixed issue #23 --- src/Network/SimpleResponse.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Network/SimpleResponse.php b/src/Network/SimpleResponse.php index 4ed5789..715d8a2 100644 --- a/src/Network/SimpleResponse.php +++ b/src/Network/SimpleResponse.php @@ -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"); } }