diff --git a/src/Composer/Util/RemoteFilesystem.php b/src/Composer/Util/RemoteFilesystem.php index 065ea3bee..5803fa020 100644 --- a/src/Composer/Util/RemoteFilesystem.php +++ b/src/Composer/Util/RemoteFilesystem.php @@ -262,7 +262,7 @@ class RemoteFilesystem { $header = sprintf( "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('r'), PHP_MAJOR_VERSION,