1
0
Fork 0
mirror of synced 2024-10-02 10:16:27 +13:00

Fix query params

This commit is contained in:
Matej Bačo 2023-02-24 12:18:22 +01:00
parent 464f88634c
commit 249a2e1699

View file

@ -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
]);