X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=inc%2Fclasses%2Fmain%2Fresponse%2Fclass_BaseResponse.php;h=14c2117ec7eea3e5e1188327779ebbc1099e23b0;hp=fbaa85a7f72a87ba21ffe0e80692c587fd7611a3;hb=7bcffaf69d46f44263cb79dc4b5d0054202197ea;hpb=ce84cc1b94d5723d4ae3cb93cf79f2a70116cf96 diff --git a/inc/classes/main/response/class_BaseResponse.php b/inc/classes/main/response/class_BaseResponse.php index fbaa85a7..14c2117e 100644 --- a/inc/classes/main/response/class_BaseResponse.php +++ b/inc/classes/main/response/class_BaseResponse.php @@ -28,7 +28,7 @@ class BaseResponse extends BaseFrameworkSystem { /** * Response status */ - private $responseStatus = "200 OK"; + private $responseStatus = '200 OK'; /** * Array with all headers @@ -154,7 +154,7 @@ class BaseResponse extends BaseFrameworkSystem { throw new ResponseHeadersAlreadySentException($this, self::EXCEPTION_HEADERS_ALREADY_SENT); } elseif (!headers_sent()) { // Send headers out - header("HTTP/1.1 {$this->responseStatus}"); + header('HTTP/1.1 ' . $this->responseStatus); // Used later $now = gmdate('D, d M Y H:i:s') . ' GMT'; @@ -170,15 +170,15 @@ class BaseResponse extends BaseFrameworkSystem { // Send all headers foreach ($this->responseHeaders as $name => $value) { - header("{$name}: {$value}"); - //* DEBUG: */ echo "{$name}: {$value}
\n"; + header($name . ': ' . $value); + //* DEBUG: */ $this->debugOutput('name=' . $name . ',value=' . $value); } // END - foreach // Send cookies out? if (count($this->cookies) > 0) { // Send all cookies $cookieString = implode(' ', $this->cookies); - header("Set-Cookie: {$cookieString}"); + header('Set-Cookie: ' . $cookieString); // Remove them all $this->cookies = array();