|
@@ -7242,8 +7242,15 @@ class RequestFactory
|
7242
|
7242
|
$psr17Factory = new Psr17Factory();
|
7243
|
7243
|
$creator = new ServerRequestCreator($psr17Factory, $psr17Factory, $psr17Factory, $psr17Factory);
|
7244
|
7244
|
$serverRequest = $creator->fromGlobals();
|
|
7245
|
+ $uri = '';
|
7245
|
7246
|
if (isset($_SERVER['PATH_INFO'])) {
|
7246
|
|
- $serverRequest = $serverRequest->withUri($psr17Factory->createUri($_SERVER['PATH_INFO'] . '?' . $_SERVER['QUERY_STRING']));
|
|
7247
|
+ $uri .= $_SERVER['PATH_INFO'];
|
|
7248
|
+ }
|
|
7249
|
+ if (isset($_SERVER['QUERY_STRING'])) {
|
|
7250
|
+ $uri .= '?' . $_SERVER['QUERY_STRING'];
|
|
7251
|
+ }
|
|
7252
|
+ if ($uri) {
|
|
7253
|
+ $serverRequest = $serverRequest->withUri($psr17Factory->createUri($uri));
|
7247
|
7254
|
}
|
7248
|
7255
|
$body = file_get_contents('php://input');
|
7249
|
7256
|
if ($body) {
|