Redirect to root on empty path
[project/luci.git] / modules / luci-base / luasrc / http.lua
index a92d8af..4b35731 100644 (file)
@@ -208,6 +208,7 @@ function splice(fd, size)
 end
 
 function redirect(url)
+       if url == "" then url = "/" end
        status(302, "Found")
        header("Location", url)
        close()