From 2380198574815baef5ad69d5f3d50808f5e62001 Mon Sep 17 00:00:00 2001 From: Tomasz Sawicki Date: Wed, 19 Apr 2017 13:44:52 +0200 Subject: [PATCH] Fix constants reference --- src/JAXL/http/http_request.php | 2 +- src/JAXL/http/http_server.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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') {