summaryrefslogtreecommitdiffhomepage
path: root/libs/lucid-http/luasrc/lucid/http/LuciWebPublisher.lua
diff options
context:
space:
mode:
Diffstat (limited to 'libs/lucid-http/luasrc/lucid/http/LuciWebPublisher.lua')
-rw-r--r--libs/lucid-http/luasrc/lucid/http/LuciWebPublisher.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/lucid-http/luasrc/lucid/http/LuciWebPublisher.lua b/libs/lucid-http/luasrc/lucid/http/LuciWebPublisher.lua
index 92dd7e2cb..5dc70df84 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