libs/lucid-http: fix regressions with recent git uci
[project/luci.git] / libs / lucid-http / luasrc / lucid / http / DirectoryPublisher.lua
index b57b558..09cade4 100644 (file)
@@ -45,6 +45,6 @@ function factory(server, config)
                        vhost:set_handler(v, handler)
                end
        else
-               vhost:set_handler(config.virtual, handler)
+               vhost:set_handler(config.virtual or "", handler)
        end
-end
\ No newline at end of file
+end