refactoring routing and class comments.

This commit is contained in:
Taylor Otwell
2011-10-13 21:32:11 -05:00
parent cff90b52ab
commit 9fa69e0844
27 changed files with 465 additions and 435 deletions

View File

@@ -235,7 +235,10 @@ class Response {
*/
public function send()
{
if ( ! isset($this->headers['Content-Type'])) $this->header('Content-Type', 'text/html; charset=utf-8');
if ( ! isset($this->headers['Content-Type']))
{
$this->header('Content-Type', 'text/html; charset=utf-8');
}
if ( ! headers_sent()) $this->send_headers();
@@ -274,7 +277,6 @@ class Response {
public function header($name, $value)
{
$this->headers[$name] = $value;
return $this;
}
@@ -287,7 +289,6 @@ class Response {
public function status($status)
{
$this->status = $status;
return $this;
}