From 67b5304af3db9cfab216fe6d64ab3c49db8bf40e Mon Sep 17 00:00:00 2001 From: Gregor Petrin Date: Thu, 27 Feb 2014 12:54:05 +0100 Subject: [PATCH] Added a note about the Accept header working differently for content negotiation --- src/en/guide/theWebLayer/contentNegotiation.gdoc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/en/guide/theWebLayer/contentNegotiation.gdoc b/src/en/guide/theWebLayer/contentNegotiation.gdoc index a116066e668..38d8573ccd9 100644 --- a/src/en/guide/theWebLayer/contentNegotiation.gdoc +++ b/src/en/guide/theWebLayer/contentNegotiation.gdoc @@ -106,6 +106,10 @@ For example, if it sees the accept header above ('application/json') it will set An accept header of '\*/\*' results in a value of @all@ for the @format@ property. +{note} +If the accept header is used but contains no registered content types, Grails will assume a broken browser is making the request and will set the HTML format - note that this is different from how the other content negotiation modes work as those would activate the "all" format! +{note} + h4. Request format vs. Response format