diff options
author | Alex <[email protected]> | 2019-01-16 21:24:46 -0800 |
---|---|---|
committer | Alex <[email protected]> | 2019-01-16 21:24:46 -0800 |
commit | effd1cd2922ca4faabb60f02870a8e40130db329 (patch) | |
tree | 37c7405005f041b9f05bfe30c5511fe4e460a3cd /src | |
parent | bcb4b7d1f0c5ef4e13aac493611cd28fdde45a29 (diff) |
Add default empty User Agent
Diffstat (limited to 'src')
-rw-r--r-- | src/PSR7Client.php | 1 |
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'))) { |