Merge pull request #535 from saik0/redirect-root-if-empty-signed
Redirect to root on empty path (signed off)
This commit is contained in:
commit
2258d3de25
@ -208,6 +208,7 @@ function splice(fd, size)
|
||||
end
|
||||
|
||||
function redirect(url)
|
||||
if url == "" then url = "/" end
|
||||
status(302, "Found")
|
||||
header("Location", url)
|
||||
close()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user