@@ -111,8 +111,8 @@ static int checkContentTypes(ExType[] exTypes)
111
111
+ " cannot be determined" );
112
112
failures ++;
113
113
} else if (!expectedTypes .contains (type )) {
114
- System .err .printf ("Content type: %s; expected: %s%n" ,
115
- type , expectedTypes );
114
+ System .err .printf ("For extension %s we got content type: %s; expected: %s%n" ,
115
+ extension , type , expectedTypes );
116
116
failures ++;
117
117
}
118
118
} finally {
@@ -156,7 +156,7 @@ public static void main(String[] args) throws IOException {
156
156
// Verify that certain extensions are mapped to the correct type.
157
157
var exTypes = new ExType [] {
158
158
new ExType ("adoc" , List .of ("text/plain" )),
159
- new ExType ("bz2" , List .of ("application/bz2" , "application/x-bzip2" )),
159
+ new ExType ("bz2" , List .of ("application/bz2" , "application/x-bzip2" , "application/x-bzip" )),
160
160
new ExType ("css" , List .of ("text/css" )),
161
161
new ExType ("csv" , List .of ("text/csv" )),
162
162
new ExType ("doc" , List .of ("application/msword" )),
@@ -167,19 +167,19 @@ public static void main(String[] args) throws IOException {
167
167
new ExType ("js" , List .of ("text/javascript" , "application/javascript" )),
168
168
new ExType ("json" , List .of ("application/json" )),
169
169
new ExType ("markdown" , List .of ("text/markdown" )),
170
- new ExType ("md" , List .of ("text/markdown" )),
170
+ new ExType ("md" , List .of ("text/markdown" , "application/x-genesis-rom" )),
171
171
new ExType ("mp3" , List .of ("audio/mpeg" )),
172
172
new ExType ("mp4" , List .of ("video/mp4" )),
173
173
new ExType ("odp" , List .of ("application/vnd.oasis.opendocument.presentation" )),
174
174
new ExType ("ods" , List .of ("application/vnd.oasis.opendocument.spreadsheet" )),
175
175
new ExType ("odt" , List .of ("application/vnd.oasis.opendocument.text" )),
176
176
new ExType ("pdf" , List .of ("application/pdf" )),
177
- new ExType ("php" , List .of ("text/plain" , "text/php" )),
177
+ new ExType ("php" , List .of ("text/plain" , "text/php" , "application/x-php" )),
178
178
new ExType ("png" , List .of ("image/png" )),
179
179
new ExType ("ppt" , List .of ("application/vnd.ms-powerpoint" )),
180
180
new ExType ("pptx" ,List .of ("application/vnd.openxmlformats-officedocument.presentationml.presentation" )),
181
181
new ExType ("py" , List .of ("text/plain" , "text/x-python" , "text/x-python-script" )),
182
- new ExType ("rar" , List .of ("application/rar" , "application/vnd.rar" )),
182
+ new ExType ("rar" , List .of ("application/rar" , "application/vnd.rar" , "application/x-rar" )),
183
183
new ExType ("rtf" , List .of ("application/rtf" , "text/rtf" )),
184
184
new ExType ("webm" , List .of ("video/webm" )),
185
185
new ExType ("webp" , List .of ("image/webp" )),
0 commit comments