libs/lucid-http: fix regressions with recent git uci
This commit is contained in:
parent
a7ec41b283
commit
74630d6814
3 changed files with 6 additions and 6 deletions
|
@ -45,6 +45,6 @@ function factory(server, config)
|
||||||
vhost:set_handler(v, handler)
|
vhost:set_handler(v, handler)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
vhost:set_handler(config.virtual, handler)
|
vhost:set_handler(config.virtual or "", handler)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -64,10 +64,10 @@ function factory(server, config)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
mypath = config.virtual
|
mypath = config.virtual
|
||||||
vhost:set_handler(config.virtual, handler)
|
vhost:set_handler(config.virtual or "", handler)
|
||||||
end
|
end
|
||||||
|
|
||||||
if config.home then
|
if config.home then
|
||||||
vhost.default = mypath
|
vhost.default = mypath
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -29,5 +29,5 @@ function factory(server, config)
|
||||||
end
|
end
|
||||||
|
|
||||||
local handler = catchall.Redirect(config.name, config.physical)
|
local handler = catchall.Redirect(config.name, config.physical)
|
||||||
vhost:set_handler(config.virtual, handler)
|
vhost:set_handler(config.virtual or "", handler)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue