libs/lucid-http: fix regressions with recent git uci
[project/luci.git] / libs / lucid-http / luasrc / lucid / http / Redirector.lua
index 73561af..66a86a7 100644 (file)
@@ -29,5 +29,5 @@ function factory(server, config)
        end
 
        local handler = catchall.Redirect(config.name, config.physical)
-       vhost:set_handler(config.virtual, handler)
-end
\ No newline at end of file
+       vhost:set_handler(config.virtual or "", handler)
+end