Browse Source

Merge pull request #8258 from ndm2/fix-header-name

Fix header name.
ADmad 10 years ago
parent
commit
0ad50caa2e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/Controller/Component/RequestHandlerComponent.php

+ 2 - 2
src/Controller/Component/RequestHandlerComponent.php

@@ -285,10 +285,10 @@ class RequestHandlerComponent extends Component
      * "304 Not Modified" header.
      *
      * - If Router::extensions() is enabled, the layout and template type are
-     *   switched based on the parsed extension or Accept-Type header. For example,
+     *   switched based on the parsed extension or `Accept` header. For example,
      *   if `controller/action.xml` is requested, the view path becomes
      *   `app/View/Controller/xml/action.ctp`. Also if `controller/action` is
-     *   requested with `Accept-Type: application/xml` in the headers the view
+     *   requested with `Accept: application/xml` in the headers the view
      *   path will become `app/View/Controller/xml/action.ctp`. Layout and template
      *   types will only switch to mime-types recognized by Cake\Network\Response.
      *   If you need to declare additional mime-types, you can do so using