Skip to content

Commit

Permalink
格式修改
Browse files Browse the repository at this point in the history
  • Loading branch information
蒋羽萌 committed Jul 26, 2018
1 parent 550e722 commit 3974a71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Core/Http/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand All @@ -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{
Expand Down

0 comments on commit 3974a71

Please sign in to comment.