refactoring classes.

This commit is contained in:
Taylor Otwell
2011-08-15 22:29:11 -05:00
parent 695a8848ed
commit 7225ec0a9e
3 changed files with 35 additions and 14 deletions

View File

@@ -133,7 +133,10 @@ class Response {
*/
public function send()
{
if ( ! array_key_exists('Content-Type', $this->headers)) $this->header('Content-Type', 'text/html; charset=utf-8');
if ( ! array_key_exists('Content-Type', $this->headers))
{
$this->header('Content-Type', 'text/html; charset=utf-8');
}
if ( ! headers_sent()) $this->send_headers();