summaryrefslogtreecommitdiffhomepage
path: root/libs/lucid-http/luasrc/lucid
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-12-29 17:50:35 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-12-29 17:50:35 +0000
commit74630d681464a8c351c2c5393e336df3c918dd6d (patch)
treebd973effba93920f96b247997487c74c3ec8a5e6 /libs/lucid-http/luasrc/lucid
parenta7ec41b283ddba3c109a19319d13f574dc3c6bc0 (diff)
libs/lucid-http: fix regressions with recent git uci
Diffstat (limited to 'libs/lucid-http/luasrc/lucid')
-rw-r--r--libs/lucid-http/luasrc/lucid/http/DirectoryPublisher.lua4
-rw-r--r--libs/lucid-http/luasrc/lucid/http/LuciWebPublisher.lua4
-rw-r--r--libs/lucid-http/luasrc/lucid/http/Redirector.lua4
3 files changed, 6 insertions, 6 deletions
diff --git a/libs/lucid-http/luasrc/lucid/http/DirectoryPublisher.lua b/libs/lucid-http/luasrc/lucid/http/DirectoryPublisher.lua
index b57b5586a2..09cade49e1 100644
--- a/libs/lucid-http/luasrc/lucid/http/DirectoryPublisher.lua
+++ b/libs/lucid-http/luasrc/lucid/http/DirectoryPublisher.lua
@@ -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 \ No newline at end of file
+end
diff --git a/libs/lucid-http/luasrc/lucid/http/LuciWebPublisher.lua b/libs/lucid-http/luasrc/lucid/http/LuciWebPublisher.lua
index 92dd7e2cbe..5dc70df841 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
diff --git a/libs/lucid-http/luasrc/lucid/http/Redirector.lua b/libs/lucid-http/luasrc/lucid/http/Redirector.lua
index 73561af2da..66a86a7ff7 100644
--- a/libs/lucid-http/luasrc/lucid/http/Redirector.lua
+++ b/libs/lucid-http/luasrc/lucid/http/Redirector.lua
@@ -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