We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7fa4cc commit 1db5777Copy full SHA for 1db5777
src/Connector/NetteConnector.php
@@ -31,10 +31,12 @@ public function setContainerAccessor(callable $containerAccessor): void
31
*/
32
public function doRequest($request): Response
33
{
34
+ $phpSelf = $_SERVER['PHP_SELF'];
35
$_COOKIE = $request->getCookies();
36
$_SERVER = $request->getServer();
37
$_FILES = $request->getFiles();
38
39
+ $_SERVER['PHP_SELF'] = $phpSelf;
40
$_SERVER['REQUEST_METHOD'] = $method = strtoupper($request->getMethod());
41
$_SERVER['REQUEST_URI'] = str_replace('http://localhost', '', $request->getUri());
42
$_SERVER['REMOTE_ADDR'] = '127.0.0.1';
0 commit comments