From 1d1fcdea81470921b690ac62903b8524f2ca7435 Mon Sep 17 00:00:00 2001 From: Oliver Nowak Date: Mon, 13 Nov 2023 19:57:19 +0100 Subject: [PATCH] Fix content type negotiation header name. --- en/controllers.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/en/controllers.rst b/en/controllers.rst index e07343b684..831593d0ba 100644 --- a/en/controllers.rst +++ b/en/controllers.rst @@ -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()``