diff --git a/src/main/java/ortus/boxlang/web/MiniServer.java b/src/main/java/ortus/boxlang/web/MiniServer.java index 788179c..7b71a82 100644 --- a/src/main/java/ortus/boxlang/web/MiniServer.java +++ b/src/main/java/ortus/boxlang/web/MiniServer.java @@ -124,16 +124,16 @@ public static void main( String[] args ) { .addHttpListener( port, host ) .setHandler( new EncodingHandler( new ContentEncodingRepository().addEncodingHandler( "gzip", new GzipEncodingProvider(), 50, Predicates.parse( "request-larger-than(1500)" ) ) ) - .setNext( new WelcomeFileHandler( - Handlers.predicate( - // If this predicate evaluates to true, we process via BoxLang, otherwise, we serve a static file - Predicates.parse( "regex( '^(/.+?\\.cfml|/.+?\\.cf[cms]|.+?\\.bx[ms]{0,1})(/.*)?$' )" ), - new BLHandler( absWebRoot.toString() ), - new ResourceHandler( resourceManager ) - .setDirectoryListingEnabled( true ) ), - resourceManager, - List.of( "index.bxm", "index.bxs", "index.cfm", "index.cfs", "index.htm", "index.html" ) - ) ) ) + .setNext( new WelcomeFileHandler( + Handlers.predicate( + // If this predicate evaluates to true, we process via BoxLang, otherwise, we serve a static file + Predicates.parse( "regex( '^(/.+?\\.cfml|/.+?\\.cf[cms]|.+?\\.bx[ms]{0,1})(/.*)?$' )" ), + new BLHandler( absWebRoot.toString() ), + new ResourceHandler( resourceManager ) + .setDirectoryListingEnabled( true ) ), + resourceManager, + List.of( "index.bxm", "index.bxs", "index.cfm", "index.cfs", "index.htm", "index.html" ) + ) ) ) .build(); // Add a shutdown hook to stop the server