mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Changing docs in CakeRequest:accepts() as they were misleading, you are required to pass a correct mimetype and not an alias
This commit is contained in:
parent
93123a8e6f
commit
476209df03
1 changed files with 1 additions and 1 deletions
|
@ -656,7 +656,7 @@ class CakeRequest implements ArrayAccess {
|
|||
*
|
||||
* #### Check for a single type:
|
||||
*
|
||||
* `$this->request->accepts('json');`
|
||||
* `$this->request->accepts('application/json');`
|
||||
*
|
||||
* This method will order the returned content types by the preference values indicated
|
||||
* by the client.
|
||||
|
|
Loading…
Add table
Reference in a new issue