@@ -20,8 +20,8 @@ |
||
20 | 20 | |
21 | 21 | protected function writeHeader(HttpResponse $response) |
22 | 22 | { |
23 | - echo "HTTP/1.1 " . $response->getResponseCode() . "\r\n"; |
|
24 | - echo "Content-Type: " . $this->getContentType() . "\r\n"; |
|
23 | + echo "HTTP/1.1 ".$response->getResponseCode()."\r\n"; |
|
24 | + echo "Content-Type: ".$this->getContentType()."\r\n"; |
|
25 | 25 | |
26 | 26 | foreach ($response->getHeaders() as $header) { |
27 | 27 | if (is_array($header)) { |
@@ -62,7 +62,7 @@ |
||
62 | 62 | if (defined("RESTSERVER_TEST")) { |
63 | 63 | return; |
64 | 64 | } |
65 | - header("Content-Type: " . $this->contentType); |
|
65 | + header("Content-Type: ".$this->contentType); |
|
66 | 66 | } |
67 | 67 | |
68 | 68 | public function getContentType() |
@@ -50,7 +50,7 @@ |
||
50 | 50 | |
51 | 51 | $debug = $this->getDataTable(); |
52 | 52 | if (count($debug) > 0) { |
53 | - $response .= "\n\n" . json_encode(["debug" => $debug]); |
|
53 | + $response .= "\n\n".json_encode(["debug" => $debug]); |
|
54 | 54 | } |
55 | 55 | |
56 | 56 | $this->setProperHeader($this->getException()); |