Skip to content

Commit

Permalink
Added a note about the Accept header working differently for content …
Browse files Browse the repository at this point in the history
…negotiation
  • Loading branch information
gregopet committed Feb 27, 2014
1 parent 7ba5d75 commit 67b5304
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/en/guide/theWebLayer/contentNegotiation.gdoc
Expand Up @@ -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

Expand Down

0 comments on commit 67b5304

Please sign in to comment.