Upgrade to 3.1.0
This commit is contained in:
@@ -5,13 +5,13 @@ namespace Kirby\Http;
|
||||
use Kirby\Toolkit\Str;
|
||||
|
||||
/**
|
||||
* This class makes cookie handling easy
|
||||
* The `Cookie` class helps you to
|
||||
* handle cookies in your projects.
|
||||
*
|
||||
* @package Kirby Http
|
||||
* @author Bastian Allgeier <bastian@getkirby.com>
|
||||
* @link http://getkirby.com
|
||||
* @copyright Bastian Allgeier
|
||||
* @license MIT
|
||||
*/
|
||||
class Cookie
|
||||
{
|
||||
|
@@ -5,13 +5,13 @@ namespace Kirby\Http;
|
||||
use Kirby\Toolkit\F;
|
||||
|
||||
/**
|
||||
* Makes sending HTTP headers a breeze
|
||||
* The Header class provides methods
|
||||
* for sending HTTP headers.
|
||||
*
|
||||
* @package Kirby Toolkit
|
||||
* @package Kirby Http
|
||||
* @author Bastian Allgeier <bastian@getkirby.com>
|
||||
* @link http://getkirby.com
|
||||
* @copyright Bastian Allgeier
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
class Header
|
||||
{
|
||||
|
@@ -12,7 +12,7 @@ use Kirby\Toolkit\A;
|
||||
use Kirby\Toolkit\Str;
|
||||
|
||||
/**
|
||||
* The Request class provides
|
||||
* The `Request` class provides
|
||||
* a simple API to inspect incoming
|
||||
* requests.
|
||||
*
|
||||
@@ -154,7 +154,7 @@ class Request
|
||||
|
||||
/**
|
||||
* Detects ajax requests
|
||||
*
|
||||
* @deprecated 3.1.0 No longer reliable, especially with the fetch api.
|
||||
* @return boolean
|
||||
*/
|
||||
public function ajax(): bool
|
||||
|
@@ -187,7 +187,7 @@ class Response
|
||||
*/
|
||||
public static function file(string $file)
|
||||
{
|
||||
return new static(F::read($file), F::mime($file));
|
||||
return new static(F::read($file), F::extensionToMime(F::extension($file)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -155,6 +155,7 @@ class Route
|
||||
/**
|
||||
* Throws a specific exception to tell
|
||||
* the router to jump to the next route
|
||||
* @since 3.0.3
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
|
Reference in New Issue
Block a user