summaryrefslogtreecommitdiff
path: root/src/PSR7Client.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/PSR7Client.php')
-rw-r--r--src/PSR7Client.php4
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);
}
}