mirror of
https://github.com/sigmasternchen/shochu
synced 2025-03-15 07:38:55 +00:00
added redirect function to utils
This commit is contained in:
parent
eceeb76eac
commit
10b8f41076
1 changed files with 5 additions and 0 deletions
5
utils.sh
5
utils.sh
|
@ -80,6 +80,11 @@ header() {
|
|||
echo "$1: $2"
|
||||
}
|
||||
|
||||
redirect() {
|
||||
status 302
|
||||
header "Location" "$1"
|
||||
}
|
||||
|
||||
endHeaders() {
|
||||
if test "$_hasStatus" = 0; then
|
||||
status 200
|
||||
|
|
Loading…
Reference in a new issue