summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2019-09-06 13:05:16 +0300
committerWolfy-J <[email protected]>2019-09-06 13:05:16 +0300
commit461db7f19195f70306e41e8920616c53eb00c1f3 (patch)
tree4f54e937e1a3cba255ff3a712cc7b55d6515aed7 /src
parent2ac01468ee745ace3a72742aa97cbd3e51d6dae2 (diff)
- bugfix: proper proxy IP validation + CS
Diffstat (limited to 'src')
-rw-r--r--src/PSR7Client.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/PSR7Client.php b/src/PSR7Client.php
index 5b9425d6..cb3b7a7b 100644
--- a/src/PSR7Client.php
+++ b/src/PSR7Client.php
@@ -132,6 +132,8 @@ class PSR7Client
protected function configureServer(array $ctx): array
{
$server = $this->originalServer;
+
+ $server['REQUEST_URI'] = $rawRequest['ctx']['uri'];
$server['REQUEST_TIME'] = time();
$server['REQUEST_TIME_FLOAT'] = microtime(true);
$server['REMOTE_ADDR'] = $ctx['attributes']['ipAddress'] ?? $ctx['remoteAddr'] ?? '127.0.0.1';