Skip to content
Permalink
Browse files

Changing docs in CakeRequest:accepts() as they were misleading, you a…

…re required to pass a correct mimetype and not an alias
  • Loading branch information...
lorenzo committed Jun 26, 2012
1 parent 93123a8 commit 476209df03276922b3b9e1ff6c3a0857f13ed64c
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Network/CakeRequest.php
@@ -656,7 +656,7 @@ public function subdomains($tldLength = 1) {
*
* #### 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.

0 comments on commit 476209d

Please sign in to comment.
You can’t perform that action at this time.