Upgrade to 3.7.0
This commit is contained in:
17
kirby/src/Http/Response.php
Normal file → Executable file
17
kirby/src/Http/Response.php
Normal file → Executable file
@@ -200,6 +200,23 @@ class Response
|
||||
return new static($props);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Redirects to the given Urls
|
||||
* Urls can be relative or absolute.
|
||||
* @since 3.7.0
|
||||
*
|
||||
* @param string $url
|
||||
* @param int $code
|
||||
* @return void
|
||||
*
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public static function go(string $url = '/', int $code = 302)
|
||||
{
|
||||
die(static::redirect($url, $code));
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for single headers
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user