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
1 changed files with 1 additions and 0 deletions
|
@ -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…
Reference in a new issue