Send source instead of @package_version@ for the composer version in UA
parent
5051e7a0a2
commit
73aea05907
|
@ -262,7 +262,7 @@ class RemoteFilesystem
|
||||||
{
|
{
|
||||||
$header = sprintf(
|
$header = sprintf(
|
||||||
"User-Agent: Composer/%s (%s; %s; PHP %s.%s.%s)\r\n",
|
"User-Agent: Composer/%s (%s; %s; PHP %s.%s.%s)\r\n",
|
||||||
Composer::VERSION,
|
Composer::VERSION === '@package_version@' ? 'source' : Composer::VERSION,
|
||||||
php_uname('s'),
|
php_uname('s'),
|
||||||
php_uname('r'),
|
php_uname('r'),
|
||||||
PHP_MAJOR_VERSION,
|
PHP_MAJOR_VERSION,
|
||||||
|
|
Loading…
Reference in New Issue