libs/lucid-http: fix regressions with recent git uci
[project/luci.git] / libs / lucid-http / luasrc / lucid / http / LuciWebPublisher.lua
index 92dd7e2..5dc70df 100644 (file)
@@ -64,10 +64,10 @@ function factory(server, config)
                end
        else
                mypath = config.virtual
                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
 
        if config.home then
                vhost.default = mypath
        end
-end
\ No newline at end of file
+end