Skip to content

Commit 1528565

Browse files
authored
Merge pull request #202 from wp-cli/fix/201-packagist-v1
2 parents b529594 + 1705c83 commit 1528565

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Package_Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,7 @@ private function get_package_by_shortened_identifier( $package_name, $insecure =
834834
$options = [ 'insecure' => $insecure ];
835835

836836
// Check if the package exists on Packagist.
837-
$url = "https://repo.packagist.org/p/{$package_name}.json";
837+
$url = "https://repo.packagist.org/p2/{$package_name}.json";
838838
$response = Utils\http_request( 'GET', $url, null, [], $options );
839839
if ( 20 === (int) substr( $response->status_code, 0, 2 ) ) {
840840
return $package_name;

0 commit comments

Comments
 (0)