libs/lucid-http: fix regressions with recent git uci

This commit is contained in:
Jo-Philipp Wich 2009-12-29 17:50:35 +00:00
parent a7ec41b283
commit 74630d6814
3 changed files with 6 additions and 6 deletions

View file

@ -45,6 +45,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

View file

@ -64,7 +64,7 @@ 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

View file

@ -29,5 +29,5 @@ function factory(server, config)
end
local handler = catchall.Redirect(config.name, config.physical)
vhost:set_handler(config.virtual, handler)
vhost:set_handler(config.virtual or "", handler)
end