projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a7ec41b
)
libs/lucid-http: fix regressions with recent git uci
author
Jo-Philipp Wich
<jow@openwrt.org>
Tue, 29 Dec 2009 17:50:35 +0000
(17:50 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Tue, 29 Dec 2009 17:50:35 +0000
(17:50 +0000)
libs/lucid-http/luasrc/lucid/http/DirectoryPublisher.lua
patch
|
blob
|
history
libs/lucid-http/luasrc/lucid/http/LuciWebPublisher.lua
patch
|
blob
|
history
libs/lucid-http/luasrc/lucid/http/Redirector.lua
patch
|
blob
|
history
diff --git
a/libs/lucid-http/luasrc/lucid/http/DirectoryPublisher.lua
b/libs/lucid-http/luasrc/lucid/http/DirectoryPublisher.lua
index
b57b558
..
09cade4
100644
(file)
--- 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(v, handler)
end
else
- vhost:set_handler(config.virtual, handler)
+ vhost:set_handler(config.virtual
or ""
, handler)
end
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
92dd7e2
..
5dc70df
100644
(file)
--- 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
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
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
73561af
..
66a86a7
100644
(file)
--- 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)
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