projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Redirect to root on empty path
[project/luci.git]
/
modules
/
luci-base
/
luasrc
/
http.lua
diff --git
a/modules/luci-base/luasrc/http.lua
b/modules/luci-base/luasrc/http.lua
index
a92d8af
..
4b35731
100644
(file)
--- a/
modules/luci-base/luasrc/http.lua
+++ b/
modules/luci-base/luasrc/http.lua
@@
-208,6
+208,7
@@
function splice(fd, size)
end
function redirect(url)
+ if url == "" then url = "/" end
status(302, "Found")
header("Location", url)
close()