libs/lucid-http: fix regressions with recent git uci
[project/luci.git] / libs / lucid-http / luasrc / lucid / http / LuciWebPublisher.lua
index 92dd7e2cbeaa8e8969796474b1e051d947c12440..5dc70df841009769a5b012058d7a4a1af6f060d5 100644 (file)
@@ -64,10 +64,10 @@ function factory(server, config)
                end
        else
                mypath = config.virtual
-               vhost:set_handler(config.virtual, handler)
+               vhost:set_handler(config.virtual or "", handler)
        end
 
        if config.home then
                vhost.default = mypath
        end
-end
\ No newline at end of file
+end