You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Although I could set the body to null for head requests, I think this should really be handled by tonic. The echo should not even be called for a HEAD request.
/**
* Output the response
* @codeCoverageIgnore
*/
function output() {
if (php_sapi_name() != 'cli' && !headers_sent()) {
header('HTTP/1.1 '.$this->code);
foreach ($this->headers as $header => $value) {
header($header.': '.$value);
}
}
if (strtoupper($this->request->method) !== 'HEAD') {
echo $this->body;
}
}
The text was updated successfully, but these errors were encountered:
Although I could set the body to null for head requests, I think this should really be handled by tonic. The echo should not even be called for a HEAD request.
The text was updated successfully, but these errors were encountered: