summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/PSR7Client.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/PSR7Client.php b/src/PSR7Client.php
index d034a102..e0be34a2 100644
--- a/src/PSR7Client.php
+++ b/src/PSR7Client.php
@@ -146,6 +146,7 @@ class PSR7Client
$server['REMOTE_ADDR'] = $ctx['attributes']['ipAddress'] ?? $ctx['remoteAddr'] ?? '127.0.0.1';
$server['REMOTE_ADDR'] = $ctx['attributes']['ipAddress'] ?? $ctx['remoteAddr'] ?? '127.0.0.1';
+ $server['HTTP_USER_AGENT'] = '';
foreach ($ctx['headers'] as $key => $value) {
$key = strtoupper(str_replace('-', '_', $key));
if (\in_array($key, array('CONTENT_TYPE', 'CONTENT_LENGTH'))) {