yesod/yesod-core/Yesod/Core
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
..
Class Clean up some CPP 2018-07-03 18:57:23 +03:00
Internal Clean up some CPP 2018-07-03 18:57:23 +03:00
Content.hs Clean up some CPP 2018-07-03 18:57:23 +03:00
Dispatch.hs Drop some deps 2018-07-03 19:01:58 +03:00
Handler.hs selectRep chooses first rep if no matches found. 2018-07-19 21:32:02 -05:00
Internal.hs Add hook to apply arbitrary function to all handlers 2015-12-09 11:29:13 -08:00
Json.hs Merge branch 'better-monads' into no-transformers 2018-01-11 22:49:02 +02:00
TypeCache.hs document cache key 2014-10-02 09:11:23 -07:00
Types.hs Drop some deps 2018-07-03 19:01:58 +03:00
Unsafe.hs Clean up some CPP 2018-07-03 18:57:23 +03:00
Widget.hs Clean up some CPP 2018-07-03 18:57:23 +03:00