From 086dd62f05345cda35ea1307fb3e5022a838c91b Mon Sep 17 00:00:00 2001 From: PJ Dietz Date: Sat, 28 Jun 2014 18:30:27 -0400 Subject: [PATCH] Bugfixes from removing magic methods --- src/pjdietz/WellRESTed/Request.php | 6 +++--- src/pjdietz/WellRESTed/Response.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pjdietz/WellRESTed/Request.php b/src/pjdietz/WellRESTed/Request.php index a31c4a1..de410a4 100644 --- a/src/pjdietz/WellRESTed/Request.php +++ b/src/pjdietz/WellRESTed/Request.php @@ -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']); } /** diff --git a/src/pjdietz/WellRESTed/Response.php b/src/pjdietz/WellRESTed/Response.php index b1ed5e5..28de592 100644 --- a/src/pjdietz/WellRESTed/Response.php +++ b/src/pjdietz/WellRESTed/Response.php @@ -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) {