Bugfixes from removing magic methods
This commit is contained in:
parent
c1937e8a33
commit
086dd62f05
|
|
@ -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']);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue