File tree 2 files changed +5
-3
lines changed
spring-boot-project/spring-boot/src
main/java/org/springframework/boot/web/server
test/java/org/springframework/boot/web/server
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -261,14 +261,14 @@ static final class DefaultMimeMappings extends MimeMappings {
261
261
mappings .add ("jpg" , "image/jpeg" );
262
262
mappings .add ("js" , "application/javascript" );
263
263
mappings .add ("json" , "application/json" );
264
- mappings .add ("otf" , "application/x- font-opentype " );
264
+ mappings .add ("otf" , "font/otf " );
265
265
mappings .add ("pdf" , "application/pdf" );
266
266
mappings .add ("png" , "image/png" );
267
267
mappings .add ("ps" , "application/postscript" );
268
268
mappings .add ("tar" , "application/x-tar" );
269
269
mappings .add ("tif" , "image/tiff" );
270
270
mappings .add ("tiff" , "image/tiff" );
271
- mappings .add ("ttf" , "application/x- font- ttf" );
271
+ mappings .add ("ttf" , "font/ ttf" );
272
272
mappings .add ("txt" , "text/plain" );
273
273
mappings .add ("xht" , "application/xhtml+xml" );
274
274
mappings .add ("xhtml" , "application/xhtml+xml" );
Original file line number Diff line number Diff line change @@ -174,9 +174,11 @@ void iterateOnDefaultMimeMappingsLoadsMappings() {
174
174
175
175
@ Test
176
176
void commonMappingsAreSubsetOfAllMappings () {
177
+ MimeMappings defaultMappings = new DefaultMimeMappings ();
177
178
MimeMappings commonMappings = (MimeMappings ) ReflectionTestUtils .getField (DefaultMimeMappings .class , "COMMON" );
179
+ defaultMappings .getAll ();
178
180
for (Mapping commonMapping : commonMappings ) {
179
- assertThat (MimeMappings . DEFAULT .get (commonMapping .getExtension ())).isEqualTo (commonMapping .getMimeType ());
181
+ assertThat (defaultMappings .get (commonMapping .getExtension ())).isEqualTo (commonMapping .getMimeType ());
180
182
}
181
183
}
182
184
You can’t perform that action at this time.
0 commit comments