Fix query params
This commit is contained in:
parent
464f88634c
commit
249a2e1699
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
]);
|
||||
|
||||
|
|
Loading…
Reference in a new issue