Bugfixes from removing magic methods

This commit is contained in:
PJ Dietz 2014-06-28 18:30:27 -04:00
parent c1937e8a33
commit 086dd62f05
2 changed files with 4 additions and 4 deletions

View File

@ -139,9 +139,9 @@ class Request extends Message implements RoutableInterface
$this->headerLookup[strtolower($key)] = $key;
}
$this->method = $_SERVER['REQUEST_METHOD'];
$this->uri = $_SERVER['REQUEST_URI'];
$this->hostname = $_SERVER['HTTP_HOST'];
$this->setMethod($_SERVER['REQUEST_METHOD']);
$this->setUri($_SERVER['REQUEST_URI']);
$this->setHostname($_SERVER['HTTP_HOST']);
}
/**

View File

@ -288,7 +288,7 @@ class Response extends Message implements ResponseInterface
public function respond($headersOnly = false)
{
// Output the HTTP status code.
header($this->statusLine);
header($this->getStatusLine());
// Output each header.
foreach ($this->headers as $header => $value) {