diff --git a/app/controllers/general.php b/app/controllers/general.php index c3ac98d36c..3a0bb579cc 100644 --- a/app/controllers/general.php +++ b/app/controllers/general.php @@ -85,11 +85,17 @@ App::init() $functionId = $route->getAttribute('resourceId'); $projectId = $route->getAttribute('projectId'); + $path = ($swooleRequest->server['request_uri'] ?? ''); + $query = ($swooleRequest->server['query_string'] ?? ''); + if(!empty($query)) { + $path .= '?' . $query; + } + $body = \json_encode([ 'async' => false, 'body' => $swooleRequest->getContent() ?? '', 'method' => $swooleRequest->server['request_method'], - 'path' => $swooleRequest->server['path_info'], + 'path' => $path, 'headers' => $swooleRequest->header ]);