diff options
-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); } } |