X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=libs%2Flucid-http%2Fluasrc%2Flucid%2Fhttp%2FLuciWebPublisher.lua;h=5dc70df841009769a5b012058d7a4a1af6f060d5;hp=92dd7e2cbeaa8e8969796474b1e051d947c12440;hb=74630d681464a8c351c2c5393e336df3c918dd6d;hpb=a7ec41b283ddba3c109a19319d13f574dc3c6bc0 diff --git a/libs/lucid-http/luasrc/lucid/http/LuciWebPublisher.lua b/libs/lucid-http/luasrc/lucid/http/LuciWebPublisher.lua index 92dd7e2cb..5dc70df84 100644 --- a/libs/lucid-http/luasrc/lucid/http/LuciWebPublisher.lua +++ b/libs/lucid-http/luasrc/lucid/http/LuciWebPublisher.lua @@ -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