refactoring response and session classes.

This commit is contained in:
Taylor Otwell
2011-08-14 23:10:46 -05:00
parent 48120ce403
commit 39d323c44f
2 changed files with 18 additions and 33 deletions

View File

@@ -133,7 +133,7 @@ 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();