|
|
|
|
@ -189,8 +189,7 @@ class UndertowWebServerFactoryDelegate {
@@ -189,8 +189,7 @@ class UndertowWebServerFactoryDelegate {
|
|
|
|
|
|
|
|
|
|
static List<HttpHandlerFactory> createHttpHandlerFactories(Compression compression, boolean useForwardHeaders, |
|
|
|
|
String serverHeader, Shutdown shutdown, HttpHandlerFactory... initialHttpHandlerFactories) { |
|
|
|
|
List<HttpHandlerFactory> factories = |
|
|
|
|
new ArrayList<HttpHandlerFactory>(Arrays.asList(initialHttpHandlerFactories)); |
|
|
|
|
List<HttpHandlerFactory> factories = new ArrayList<>(Arrays.asList(initialHttpHandlerFactories)); |
|
|
|
|
if (compression != null && compression.getEnabled()) { |
|
|
|
|
factories.add(new CompressionHttpHandlerFactory(compression)); |
|
|
|
|
} |
|
|
|
|
|