From 4c804cce56ceead7342603ebbcad33a64a98716c Mon Sep 17 00:00:00 2001 From: Cody Snider Date: Tue, 24 Dec 2019 21:18:41 -0500 Subject: adding REQUEST_METHOD to superglobal --- src/PSR7Client.php | 1 + 1 file changed, 1 insertion(+) (limited to 'src/PSR7Client.php') 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) { -- cgit v1.2.3