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)
|
||||
end
|
||||
else
|
||||
vhost:set_handler(config.virtual, handler)
|
||||
vhost:set_handler(config.virtual or "", handler)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -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
|
||||
end
|
||||
|
|
|
@ -29,5 +29,5 @@ function factory(server, config)
|
|||
end
|
||||
|
||||
local handler = catchall.Redirect(config.name, config.physical)
|
||||
vhost:set_handler(config.virtual, handler)
|
||||
end
|
||||
vhost:set_handler(config.virtual or "", handler)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue