summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCody Snider <[email protected]>2019-12-24 21:18:41 -0500
committerCody Snider <[email protected]>2019-12-24 21:18:41 -0500
commit4c804cce56ceead7342603ebbcad33a64a98716c (patch)
treee5c129ca157d3588f8cdfa1158ea61df8a65b235 /src
parent75a817edcff22e721dcc3a7fa5590b866f630403 (diff)
adding REQUEST_METHOD to superglobal
Diffstat (limited to 'src')
-rw-r--r--src/PSR7Client.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/PSR7Client.php b/src/PSR7Client.php
index 4250e6b9..7393848a 100644
--- a/src/PSR7Client.php
+++ b/src/PSR7Client.php
@@ -138,6 +138,7 @@ class PSR7Client
$server['REQUEST_TIME'] = time();
$server['REQUEST_TIME_FLOAT'] = microtime(true);
$server['REMOTE_ADDR'] = $ctx['attributes']['ipAddress'] ?? $ctx['remoteAddr'] ?? '127.0.0.1';
+ $server['REQUEST_METHOD'] = $ctx['method'];
$server['HTTP_USER_AGENT'] = '';
foreach ($ctx['headers'] as $key => $value) {