luci-0.9: merge r5655
[project/luci.git] / libs / lucid-http / luasrc / lucid / http / DirectoryPublisher.lua
index f471781..b7cd846 100644 (file)
@@ -42,6 +42,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