diff --git a/src/Core/Http/Request.php b/src/Core/Http/Request.php index e9053b58..dd005a78 100644 --- a/src/Core/Http/Request.php +++ b/src/Core/Http/Request.php @@ -24,7 +24,7 @@ function __construct(\swoole_http_request $request) { $this->request = $request; $this->initHeaders(); - $protocol = str_replace('HTTP/', '', $request->server['server_protocol']) ; + $protocol = str_replace('HTTP/', '', $request->server['server_protocol']); //为单元测试准备 if($request->fd){ $body = new Stream($request->rawContent()); @@ -40,7 +40,7 @@ function __construct(\swoole_http_request $request) function getRequestParam(...$key) { - $data = array_merge($this->getParsedBody(),$this->getQueryParams());; + $data = array_merge($this->getParsedBody(),$this->getQueryParams()); if(empty($key)){ return $data; }else{