yesod/yesod-core/test
Steven Leiva 266c436f18 selectRep chooses first rep if no matches found.
The `selectRep` documentation indicates that it choose the first
representation provided if no representation matches.

This was only partially correct, as `selectRep` required that no
representation matched **and** that the `Content-Type` header of the
response was empty.

This led to a problem because `defaultErrorhandler` relies on
`selectRep`, and when `selectRep` was unable to find a suitable
representation, it would "swallow" the original error that resulted in
`defaultErrorhandler` being called, and set a status 406 for all cases.
2018-07-19 21:32:02 -05:00
..
YesodCoreTest selectRep chooses first rep if no matches found. 2018-07-19 21:32:02 -05:00
en.msg Add 'yesod-core/' from commit '982d6185bee75b078bee92bd8a2e8743707f1922' 2011-07-22 08:59:56 +03:00
Hierarchy.hs Change mkYesodWith to accept separate lists for contexts and type 2018-01-22 00:19:04 -05:00
RouteSpec.hs Merge pull request #1478 from jprider63/master 2018-01-29 14:57:44 +02:00
test.hs Compile with -Wall -Werror 2017-02-05 12:09:18 +02:00
YesodCoreTest.hs Skip RawResponse tests on Windows #1523 2018-06-19 10:37:20 +03:00