diff --git a/src/JAXL/http/http_request.php b/src/JAXL/http/http_request.php index 7f9cacfe..26858c96 100644 --- a/src/JAXL/http/http_request.php +++ b/src/JAXL/http/http_request.php @@ -422,7 +422,7 @@ private function parse_shortcut_args($args) protected function send_line($code) { - $raw = $this->version." ".$code." ".constant('HTTP_'.$code).HTTPServer::HTTP_CRLF; + $raw = $this->version." ".$code." ".constant('HTTPServer::HTTP_'.$code).HTTPServer::HTTP_CRLF; $this->send($raw); } diff --git a/src/JAXL/http/http_server.php b/src/JAXL/http/http_server.php index a50a3d11..ffb831c8 100644 --- a/src/JAXL/http/http_server.php +++ b/src/JAXL/http/http_server.php @@ -138,7 +138,7 @@ public function on_request($sock, $raw) $request->body($raw); } else { // break on crlf - $lines = explode(HTTP_CRLF, $raw); + $lines = explode(self::HTTP_CRLF, $raw); // parse request line if ($request->state() == 'wait_for_request_line') {