diff options
author | Alex <[email protected]> | 2019-01-16 21:15:39 -0800 |
---|---|---|
committer | Alex <[email protected]> | 2019-01-16 21:15:39 -0800 |
commit | bcb4b7d1f0c5ef4e13aac493611cd28fdde45a29 (patch) | |
tree | 6c2ce64e1df84c9dc3df4bab6f2d00d6358767e0 /src | |
parent | 16eadf280de86de4615347af2ee7a36f35efc8ca (diff) |
Fix variable name
Diffstat (limited to 'src')
-rw-r--r-- | src/PSR7Client.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PSR7Client.php b/src/PSR7Client.php index d8ec4405..d034a102 100644 --- a/src/PSR7Client.php +++ b/src/PSR7Client.php @@ -149,9 +149,9 @@ class PSR7Client foreach ($ctx['headers'] as $key => $value) { $key = strtoupper(str_replace('-', '_', $key)); if (\in_array($key, array('CONTENT_TYPE', 'CONTENT_LENGTH'))) { - $_SERVER[$key] = implode(', ', $value); + $server[$key] = implode(', ', $value); } else { - $_SERVER['HTTP_' . $key] = implode(', ', $value); + $server['HTTP_' . $key] = implode(', ', $value); } } |