We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 895e7e1 commit cf80900Copy full SHA for cf80900
src/Connector/Nette.php
@@ -38,11 +38,14 @@ public function doRequest($request)
38
39
$_SERVER['REQUEST_METHOD'] = $method = strtoupper($request->getMethod());
40
$_SERVER['REQUEST_URI'] = $uri = str_replace('http://localhost', '', $request->getUri());
41
+ $_SERVER['REMOTE_ADDR'] = '127.0.0.1';
42
43
if ($method === 'HEAD' || $method === 'GET') {
44
$_GET = $request->getParameters();
45
+ $_POST = [];
46
} else {
47
$_POST = $request->getParameters();
48
+ $_GET = [];
49
}
50
51
$httpRequest = $this->container->getByType(IRequest::class);
0 commit comments