nitcorn: use a default virtual host when none are configure to handle a request
[nit.git] / lib / nitcorn / reactor.nit
index a8f9236..0457f3c 100644 (file)
@@ -61,6 +61,9 @@ class HttpServer
                        end label
                end
 
+               # Use default virtual host if none already responded
+               if virtual_host == null then virtual_host = factory.config.default_virtual_host
+
                # Get a response from the virtual host
                var response
                if virtual_host != null then