|
@@ -168,11 +168,11 @@ |
|
|
block discarded – undo |
|
168
|
168
|
if (isset($messages[$code])) { |
|
169
|
169
|
$text = $messages[$code]; |
|
170
|
170
|
} else { |
|
171
|
|
- return 'Unknown http status code "' . htmlentities($code) . '"'; |
|
|
171
|
+ return 'Unknown http status code "'.htmlentities($code).'"'; |
|
172
|
172
|
} |
|
173
|
173
|
|
|
174
|
174
|
$protocol = (isset($_SERVER['SERVER_PROTOCOL']) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0'); |
|
175
|
|
- header($protocol . ' ' . $code . ' ' . $text); |
|
|
175
|
+ header($protocol.' '.$code.' '.$text); |
|
176
|
176
|
$GLOBALS['http_response_code'] = $code; |
|
177
|
177
|
} else { |
|
178
|
178
|
$code = (isset($GLOBALS['http_response_code']) ? $GLOBALS['http_response_code'] : 200); |
Please login to merge, or discard this patch.