$options['http']['header'][] = sprintf(
'User-Agent: Composer/%s (%s; %s; %s%s)',
Composer::getVersion(),
function_exists('php_uname') ? php_uname('s') : 'Unknown',
function_exists('php_uname') ? php_uname('r') : 'Unknown',
$phpVersion,
getenv('CI') ? '; CI' : ''
);
- https://github.com/cweagans/composer-patches/blob/master/src/Plugin/Patches.php#L385
- https://github.com/composer/composer/blob/master/src/Composer/Util/RemoteFilesystem.php#L87
- https://github.com/composer/composer/blob/master/src/Composer/Util/RemoteFilesystem.php#L326
- https://github.com/composer/composer/blob/master/src/Composer/Util/RemoteFilesystem.php#L594
- https://github.com/composer/composer/blob/master/src/Composer/Util/StreamContextFactory.php#L142