added redirect function to utils

This commit is contained in:
overflowerror 2022-01-13 22:10:35 +01:00
parent eceeb76eac
commit 10b8f41076

View file

@ -80,6 +80,11 @@ header() {
echo "$1: $2"
}
redirect() {
status 302
header "Location" "$1"
}
endHeaders() {
if test "$_hasStatus" = 0; then
status 200