Skip to content

Commit

Permalink
Merge pull request #7767 from cakephp/ndm2-patch-1
Browse files Browse the repository at this point in the history
5.x - Fix content type negotiation header name.
  • Loading branch information
ADmad authored Nov 13, 2023
2 parents b66202a + 1d1fcde commit b535c9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion en/controllers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ Content Type Negotiation
Controllers can define a list of view classes they support. After the
controller's action is complete CakePHP will use the view list to perform
content-type negotiation with either :ref:`file-extensions` or ``Content-Type``
content-type negotiation with either :ref:`file-extensions` or ``Accept``
headers. This enables your application to re-use the same controller action to
render an HTML view or render a JSON or XML response. To define the list of
supported view classes for a controller is done with the ``addViewClasses()``
Expand Down

0 comments on commit b535c9b

Please sign in to comment.