|
16 | 16 | * MimeTypeController generates a map of file extensions to MIME types. |
17 | 17 | * |
18 | 18 | * It uses `mime.types` file from apache http located under |
19 | | - * https://svn.apache.org/viewvc/httpd/httpd/trunk/docs/conf/mime.types?view=markup |
| 19 | + * https://raw.githubusercontent.com/apache/httpd/refs/heads/trunk/docs/conf/mime.types |
20 | 20 | * |
21 | 21 | * This file has been placed in the public domain for unlimited redistribution, |
22 | 22 | * so we can use it and ship it with Yii. |
@@ -76,13 +76,13 @@ public function actionIndex($outFile = null, $aliasesOutFile = null, $extensions |
76 | 76 | } |
77 | 77 |
|
78 | 78 | $this->stdout('Downloading mime-type file from apache httpd repository...'); |
79 | | - if ($apacheMimeTypesFileContent = file_get_contents('https://svn.apache.org/viewvc/httpd/httpd/trunk/docs/conf/mime.types?view=co')) { |
| 79 | + if ($apacheMimeTypesFileContent = file_get_contents('https://raw.githubusercontent.com/apache/httpd/refs/heads/trunk/docs/conf/mime.types')) { |
80 | 80 | $this->stdout("Done.\n", Console::FG_GREEN); |
81 | 81 | $this->generateMimeTypesFile($outFile, $apacheMimeTypesFileContent); |
82 | 82 | $this->generateMimeAliasesFile($aliasesOutFile); |
83 | 83 | $this->generateMimeExtensionsFile($extensionsOutFile, $apacheMimeTypesFileContent); |
84 | 84 | } else { |
85 | | - $this->stderr("Failed to download mime.types file from apache SVN.\n"); |
| 85 | + $this->stderr("Failed to download mime.types file from apache Git.\n"); |
86 | 86 | } |
87 | 87 | } |
88 | 88 |
|
@@ -119,7 +119,7 @@ private function generateMimeTypesFile($outFile, $content) |
119 | 119 | * This file contains most commonly used MIME types |
120 | 120 | * according to file extension names. |
121 | 121 | * Its content is generated from the apache http mime.types file. |
122 | | - * https://svn.apache.org/viewvc/httpd/httpd/trunk/docs/conf/mime.types?view=markup |
| 122 | + * https://raw.githubusercontent.com/apache/httpd/refs/heads/trunk/docs/conf/mime.types |
123 | 123 | * This file has been placed in the public domain for unlimited redistribution. |
124 | 124 | * |
125 | 125 | * All extra changes made to this file must be comitted to /build/controllers/MimeTypeController.php |
@@ -214,7 +214,7 @@ private function generateMimeExtensionsFile($outFile, $content) |
214 | 214 | * If there are multiple extensions for a singe MIME type |
215 | 215 | * they are ordered from most to least common. |
216 | 216 | * Its content is generated from the apache http mime.types file. |
217 | | - * https://svn.apache.org/viewvc/httpd/httpd/trunk/docs/conf/mime.types?view=markup |
| 217 | + * https://raw.githubusercontent.com/apache/httpd/refs/heads/trunk/docs/conf/mime.types |
218 | 218 | * This file has been placed in the public domain for unlimited redistribution. |
219 | 219 | * |
220 | 220 | * All extra changes made to this file must be comitted to /build/controllers/MimeTypeController.php |
|
0 commit comments