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