From 984b02dc7f8268d8b6d4eff9b3d4e834e21236e5 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Mon, 26 Sep 2016 12:43:24 +0200 Subject: [PATCH] Upgrade to Undertow 1.4.3.Final Closes gh-7019 --- spring-boot-dependencies/pom.xml | 2 +- .../boot/context/embedded/MimeMappings.java | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/spring-boot-dependencies/pom.xml b/spring-boot-dependencies/pom.xml index 764fc8f25c..0cb91b83f9 100644 --- a/spring-boot-dependencies/pom.xml +++ b/spring-boot-dependencies/pom.xml @@ -176,7 +176,7 @@ 1.3 2.1.0.RELEASE 8.5.5 - 1.3.25.Final + 1.4.3.Final 1.7 2.0 9f96c74 diff --git a/spring-boot/src/main/java/org/springframework/boot/context/embedded/MimeMappings.java b/spring-boot/src/main/java/org/springframework/boot/context/embedded/MimeMappings.java index 3149d45485..f390ca3970 100644 --- a/spring-boot/src/main/java/org/springframework/boot/context/embedded/MimeMappings.java +++ b/spring-boot/src/main/java/org/springframework/boot/context/embedded/MimeMappings.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2013 the original author or authors. + * Copyright 2012-2016 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -67,6 +67,7 @@ public final class MimeMappings implements Iterable { mappings.add("dtd", "application/xml-dtd"); mappings.add("dv", "video/x-dv"); mappings.add("dvi", "application/x-dvi"); + mappings.add("eot", "application/vnd.ms-fontobject"); mappings.add("eps", "application/postscript"); mappings.add("etx", "text/x-setext"); mappings.add("exe", "application/octet-stream"); @@ -133,6 +134,7 @@ public final class MimeMappings implements Iterable { mappings.add("ogv", "video/ogg"); mappings.add("oga", "audio/ogg"); mappings.add("ogg", "audio/ogg"); + mappings.add("otf", "application/x-font-opentype"); mappings.add("spx", "audio/ogg"); mappings.add("flac", "audio/flac"); mappings.add("anx", "application/annodex"); @@ -164,6 +166,7 @@ public final class MimeMappings implements Iterable { mappings.add("roff", "text/troff"); mappings.add("rtf", "application/rtf"); mappings.add("rtx", "text/richtext"); + mappings.add("sfnt", "application/font-sfnt"); mappings.add("sh", "application/x-sh"); mappings.add("shar", "application/x-shar"); mappings.add("sit", "application/x-stuffit"); @@ -184,6 +187,7 @@ public final class MimeMappings implements Iterable { mappings.add("tiff", "image/tiff"); mappings.add("tr", "text/troff"); mappings.add("tsv", "text/tab-separated-values"); + mappings.add("ttf", "application/x-font-ttf"); mappings.add("txt", "text/plain"); mappings.add("ulw", "audio/basic"); mappings.add("ustar", "application/x-ustar"); @@ -206,6 +210,8 @@ public final class MimeMappings implements Iterable { mappings.add("wmls", "text/vnd.wap.wmlsc"); mappings.add("wmlscriptc", "application/vnd.wap.wmlscriptc"); mappings.add("wmv", "video/x-ms-wmv"); + mappings.add("woff", "application/font-woff"); + mappings.add("woff2", "application/font-woff2"); mappings.add("wrl", "model/vrml"); mappings.add("wspolicy", "application/wspolicy+xml"); mappings.add("z", "application/x-compress");