File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 29
29
class Downloader
30
30
{
31
31
private const DEFAULT_ENDPOINTS = [
32
- 'https://api.github .com/repos/ symfony/recipes/contents/ index.json?ref=flex/main ' ,
33
- 'https://api.github .com/repos/ symfony/recipes-contrib/contents/ index.json?ref=flex/main ' ,
32
+ 'https://raw.githubusercontent .com/symfony/recipes/flex/main/ index.json ' ,
33
+ 'https://raw.githubusercontent .com/symfony/recipes-contrib/flex/main/ index.json ' ,
34
34
];
35
35
private const MAX_LENGTH = 1000 ;
36
36
@@ -416,6 +416,7 @@ private function initialize()
416
416
private static function generateCacheKey (string $ url ): string
417
417
{
418
418
$ url = preg_replace ('{^https://api.github.com/repos/([^/]++/[^/]++)/contents/} ' , '$1/ ' , $ url );
419
+ $ url = preg_replace ('{^https://raw.githubusercontent.com/([^/]++/[^/]++)/} ' , '$1/ ' , $ url );
419
420
420
421
return preg_replace ('{[^a-z0-9.]}i ' , '- ' , $ url );
421
422
}
You can’t perform that action at this time.
0 commit comments