Changeset View
Changeset View
Standalone View
Standalone View
src/aphront/sink/AphrontPHPHTTPSink.php
Context not available. | |||||
protected function emitHTTPStatus($code, $message = '') { | protected function emitHTTPStatus($code, $message = '') { | ||||
if ($code != 200) { | if ($code != 200) { | ||||
$header = "HTTP/1.0 {$code}"; | $header = "HTTP/1.0 {$code}"; | ||||
if (strlen($message)) { | if (@strlen($message)) { | ||||
$header .= " {$message}"; | $header .= " {$message}"; | ||||
} | } | ||||
header($header); | header($header); | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0